ChainlinkOracle smart contract provides an easy way for uniformly obtaining normalized prices of any of the whitelisted ERC20 asset from the corresponding chainlink (or chainlink interface compatible oracle).

Key concepts

Each whitelisted Chainlink price feed has an associated heartbeat duration, which describes the timeout for latest submitted price validity. BOB CDP price oracle will stop consider Chainlink price if it's update timestamp falls outside of the configured heartbeat time window.

Fallback prices

Whenever Chainlink price feeds don't respond, or fails to give a answer within acceptable heartbeat period, ChainlinkOracle will fallback to the price configured by contract owner, if any.

Submitted fallback prices has their own validity period specified by the contract owner.



Last updated