IOracle.sol
View Source: contracts/interfaces/IOracle.sol
↘ Derived Contracts: MakerDAOOracle, MockOracle, StableOracle
IOracle
Functions
getCurrencyAddress
⤿ Overridden Implementation(s): MakerDAOOracle.getCurrencyAddress,MockOracle.getCurrencyAddress,StableOracle.getCurrencyAddress
Returns address of oracle currency (0x0 for ETH)
function getCurrencyAddress() external view
returns(currency address)
Arguments
Name
Type
Description
getCurrencySymbol
⤿ Overridden Implementation(s): MakerDAOOracle.getCurrencySymbol,MockOracle.getCurrencySymbol,StableOracle.getCurrencySymbol
Returns symbol of oracle currency (0x0 for ETH)
function getCurrencySymbol() external view
returns(symbol bytes32)
Arguments
Name
Type
Description
getCurrencyDenominated
⤿ Overridden Implementation(s): MakerDAOOracle.getCurrencyDenominated,MockOracle.getCurrencyDenominated,StableOracle.getCurrencyDenominated
Returns denomination of price
function getCurrencyDenominated() external view
returns(denominatedCurrency bytes32)
Arguments
Name
Type
Description
getPrice
⤿ Overridden Implementation(s): MakerDAOOracle.getPrice,MockOracle.getPrice,StableOracle.getPrice
Returns price - should throw if not valid
function getPrice() external nonpayable
returns(price uint256)
Arguments
Name
Type
Description
Last updated
Was this helpful?