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