CorrelatedTokenOracle
Last updated
This oracle fetches the price of a token that is correlated to another token.
Address of the correlated token
address CORRELATED_TOKENAddress of the underlying token
address UNDERLYING_TOKENAddress of Resilient Oracle
contract OracleInterface RESILIENT_ORACLEFetches the price of the correlated token
Parameters
asset
address
Address of the correlated token
Return Values
[0]
uint256
price The price of the correlated token in scaled decimal places
Last updated
function getPrice(address asset) external view returns (uint256)
