CorrelatedTokenOracle
CorrelatedTokenOracle
This oracle fetches the price of a token that is correlated to another token.
Solidity API
CORRELATED_TOKEN
Address of the correlated token
UNDERLYING_TOKEN
Address of the underlying token
RESILIENT_ORACLE
Address of Resilient Oracle
getPrice
Fetches the price of the correlated token
Parameters
Name
Type
Description
asset
address
Address of the correlated token
Return Values
Name
Type
Description
[0]
uint256
price The price of the correlated token in scaled decimal places
Last updated