ChainlinkOracleWrapper
Last updated
Last updated
Reads a Chainlink oracle value & wrap it under the standard Chi oracle interface
ChainlinkOracleWrapper constructor
Name | Type | Description |
---|---|---|
updates the oracle price
no-op, Chainlink is updated automatically
determine if read value is stale
read the oracle price
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_core
address
Chi Core for reference
_chainlinkOracle
address
reference to the target Chainlink oracle
[0]
bool
true if read value is stale
[0]
struct Decimal.D256
oracle price
[1]
bool
true if price is valid