IChainlinkOracle

Git Source

Functions

PRICE_TOO_OLD

The sentinel value returned instead of the price if the data from the oracle is too old.

function PRICE_TOO_OLD() external pure returns (int256 sentinelValue_);

Returns

NameTypeDescription
sentinelValue_int256The sentinel value for "price too old".

getChainlinkDecimals

Gets the number of decimals of the asset from Chainlink.

function getChainlinkDecimals() external view returns (uint256 decimals_);

Returns

NameTypeDescription
decimals_uint256The number of decimals of the asset.

getPriceFeed

Gets the Chainlink price feed aggregator contract address.

function getPriceFeed() external view returns (AggregatorV3Interface priceFeed_);

Returns

NameTypeDescription
priceFeed_AggregatorV3InterfaceThe address of the Chainlink price feed contract.

getChainlinkTimeElapsedLimit

Gets the duration after which the Chainlink data is considered stale or invalid.

function getChainlinkTimeElapsedLimit() external view returns (uint256 limit_);

Returns

NameTypeDescription
limit_uint256The price validity duration.