CompositeOracle
Reads two oracles and returns their product
Functions
constructor
CompositeOracle constructor
Parameters
Name
Type
Description
_core
address
_oracleA
contract IOracle
first referenced oracle
_oracleB
contract IOracle
second referenced oracle
update
updates the oracle price
isOutdated
determine if read value is stale
Return Values
Name
Type
Description
[0]
bool
true if read value is stale
read
read the oracle price
Return Values
Name
Type
Description
[0]
struct Decimal.D256
oracle price
[1]
bool
true if price is valid
Last updated