Skip to main content

MockOracle

Functions

constructor

function constructor(
uint256 usdPerEth
) public

Parameters

NameTypeDescription
usdPerEthuint256

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

NameTypeDescription
_outdatedbool

setValid

function setValid(
bool isValid
) public

Parameters

NameTypeDescription
isValidbool

setExchangeRate

function setExchangeRate(
uint256 usdPerEth
) public

Parameters

NameTypeDescription
usdPerEthuint256

setExchangeRateScaledBase

function setExchangeRateScaledBase(
uint256 usdPerEth
) public

Parameters

NameTypeDescription
usdPerEthuint256