Oracles

afiUSD Oracle -

The afiUSD Oracle exposes a Chainlink-compatible afiUSD / USD price feed.

It derives price from:

  • afiUSD vault exchange rate (IafiUSD.exchangeRate() – 6 decimals)

  • Chainlink USDC / USD feed

The oracle implements standard Chainlink interfaces, enabling drop-in use wherever a Chainlink feed is expected.

Interface

  • decimals() → 8

  • latestAnswer() → afiUSD / USD price

  • latestRoundData() → Chainlink-style round data

Helpers

  • getUSDCPrice() → USDC / USD from Chainlink

  • getCurrentExchangeRate() → afiUSD vault exchange rate

Usage

int256 price = afiOracle.latestAnswer(); // afiUSD / USD (8 decimals)

Deployment


afi-rwaUSDi Oracle -

Stores the afi-rwaUSDi ↔ underlying asset exchange rate, used by the vault for share-to-asset conversions.

Properties

  • Precision: 6 decimals (1e6)

Functions

  • fetchExchangeRate() → read current rate

  • updateExchangeRate() → update rate (authorized updaters)

Deployment

Last updated