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
address CORRELATED_TOKENUNDERLYING_TOKEN
Address of the underlying token
address UNDERLYING_TOKENRESILIENT_ORACLE
Address of Resilient Oracle
contract OracleInterface RESILIENT_ORACLEgetPrice
Fetches the price of the correlated token
function getPrice(address asset) external view returns (uint256)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

