MockOracle.sol

View Source: contracts/mocks/MockOracle.solarrow-up-right

↗ Extends: IOraclearrow-up-right

MockOracle

Contract Members

Constants & Variables

address public currency;
bytes32 public currencySymbol;
bytes32 public denominatedCurrency;
uint256 public price;

Functions

Arguments

Name

Type

Description

_currency

address

_currencySymbol

bytes32

_denominatedCurrency

bytes32

_price

uint256

changePrice

Arguments

Name

Type

Description

_price

uint256

getCurrencyAddress

⤾ overrides IOracle.getCurrencyAddressarrow-up-right

Returns address of oracle currency (0x0 for ETH)

Arguments

Name

Type

Description

getCurrencySymbol

⤾ overrides IOracle.getCurrencySymbolarrow-up-right

Returns symbol of oracle currency (0x0 for ETH)

Arguments

Name

Type

Description

getCurrencyDenominated

⤾ overrides IOracle.getCurrencyDenominatedarrow-up-right

Returns denomination of price

Arguments

Name

Type

Description

getPrice

⤾ overrides IOracle.getPricearrow-up-right

Returns price - should throw if not valid

Arguments

Name

Type

Description

Last updated

Was this helpful?