MockOracle
Functions
constructor
function constructor(
uint256 usdPerEth
) public
Parameters
Name | Type | Description |
---|---|---|
usdPerEth | uint256 |
update
function update() public
read
function read() public returns (struct Decimal.D256, bool)
isOutdated
function isOutdated() public returns (bool)
setOutdated
function setOutdated(
bool _outdated
) public
Parameters
Name | Type | Description |
---|---|---|
_outdated | bool |
setValid
function setValid(
bool isValid
) public
Parameters
Name | Type | Description |
---|---|---|
isValid | bool |
setExchangeRate
function setExchangeRate(
uint256 usdPerEth
) public
Parameters
Name | Type | Description |
---|---|---|
usdPerEth | uint256 |
setExchangeRateScaledBase
function setExchangeRateScaledBase(
uint256 usdPerEth
) public
Parameters
Name | Type | Description |
---|---|---|
usdPerEth | uint256 |