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