IChainlinkOracle
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
Name | Type | Description |
---|---|---|
sentinelValue_ | int256 | The 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
Name | Type | Description |
---|---|---|
decimals_ | uint256 | The number of decimals of the asset. |
getPriceFeed
Gets the Chainlink price feed aggregator contract address.
function getPriceFeed() external view returns (AggregatorV3Interface priceFeed_);
Returns
Name | Type | Description |
---|---|---|
priceFeed_ | AggregatorV3Interface | The 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
Name | Type | Description |
---|---|---|
limit_ | uint256 | The price validity duration. |