# The naira rate on QIE (/docs/qie/rate-feed)

Todoku publishes the reference naira rate it prices from as a Chainlink-style feed on QIE mainnet, so any contract or app can read it.

`FiatRateFeed` is the same shape as QIE Oracle's own feeds (`AggregatorV3Interface`, 8 decimals), one deployment per currency, naira first ("NGN / USD").

| | |
| --- | --- |
| Answer | US dollars per 1 naira × 10⁸. ₦1,440 to the dollar is 69,444. Naira per dollar = 10⁸ ÷ answer |
| Source | Paycrest's rate for selling USDC into naira, before Todoku's 1% margin |
| When it publishes | Todoku's worker checks every 5 minutes and publishes when there is no round yet, the rate moved 0.5% or more, or the last round is 6 hours old |
| Who can publish | Only the feed's owner (Todoku's operator wallet) |
| Reads | `latestRoundData()`, `getRoundData(roundId)`, `latestRoundId()`, `decimals()`, `description()` |

<Contracts />

## Read it [#read-it]

```ts title="read-naira-rate.ts"
import { createPublicClient, http, parseAbi } from "viem";

const feed = "0xd97837d5f7E0aAD0648E262FA0d374Ef9756934a"; // FiatRateFeed NGN / USD on QIE mainnet
const abi = parseAbi([
  "function latestRoundData() view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)",
]);

const client = createPublicClient({ transport: http("https://rpc5mainnet.qie.digital") });
const [roundId, answer, , updatedAt] = await client.readContract({ address: feed, abi, functionName: "latestRoundData" });
console.log(`₦${(1e8 / Number(answer)).toFixed(2)} per $1, round ${roundId}, at ${new Date(Number(updatedAt) * 1000).toISOString()}`);
```

The scorecard shows the latest round. Round 1 went out on 25 November 2026 at 70,200, about ₦1,424.50 to the dollar. (Before a feed's first round, `latestRoundData` reverts with `RoundNotFound`.)