Oracle
An oracle module is deployed for each collateral type, feeding it the price data for a corresponding collateral type to the Vat
. Every oracle module contains three main contracts: Median, OSM, Spot
.
USDD utilises Chainlink Data Feeds as its primary Oracle on the Tron network.
Procedure
Median computes a price from a list of supported price feeds.
OSM updates the current price and the next price according to the price from Median.
Spot reads the current price from OSM and updates
ilk.spot
invat
.
USDD utilises Chainlink Data Feeds as its primary Oracle on the Tron network.
Last updated