Skip to main content

Oracles

Everything that depends on value, from borrowing power to liquidations, depends on prices. Sward reads them from the market's oracle contract rather than from any exchange or API.

How prices are used

The oracle quotes every listed asset in a common base currency (USD with 8 decimals on this deployment). The protocol uses those quotes to compute:

  • the USD value of your collateral and debt,
  • your LTV and health factor,
  • how much a liquidator receives for repaying your debt.

The app shows the current oracle price on each reserve's page, and uses the same source for every USD figure you see.

What this means for you

Oracle prices are the protocol's ground truth. If an exchange briefly quotes a different price, liquidations still key off the oracle. On this testnet the oracle uses fixed reference feeds, so prices are stable; on a production deployment they would track live market feeds with the usual protections (deviation thresholds and heartbeats).