Price Oracle
A Price Oracle is a contract that returns the price for any given asset pair. Price is retrieved either directly from an oracle, calculated using common asset pairs, or uses external data to calculate price. Note: Prices are returned in preciseUnits (i.e. 18 decimals of precision).
Select View Methods
oracles()
mapping(address => mapping(address => IOracle)) public oracles;
Mapping between assetA / assetB and its associated oracle. Asset 1 -> asset 2 -> source oracle address.
Parameter Name
Type
Description
assetOne
address
Asset one to get price of
assetTwo
address
Asset two to get price of
Return Name
Type
Description
oracleAddress
IOracle
Oracle address
Last updated