ChainlinkOracleWrapper
Reads a Chainlink oracle value & wrap it under the standard Chi oracle interface
Functions
constructor
ChainlinkOracleWrapper constructor
Parameters
Name | Type | Description |
---|---|---|
| address | Chi Core for reference |
| address | reference to the target Chainlink oracle |
_init
update
updates the oracle price
no-op, Chainlink is updated automatically
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