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_TOKEN

UNDERLYING_TOKEN

Address of the underlying token

address UNDERLYING_TOKEN

RESILIENT_ORACLE

Address of Resilient Oracle

contract OracleInterface RESILIENT_ORACLE

getPrice

Fetches the price of the correlated token

function getPrice(address asset) external view returns (uint256)

Parameters

Return Values


Last updated