Fei Protocol
Search…
ChainlinkOracleWrapper
A wrapper around a Chainlink price feed

Contract

Description

Wraps a Chainlink oracle

Read-Only Functions

read

1
function read() external view returns (Decimal.D256 memory, bool);
Copied!
Reads the oracle value and reports the peg as FEI per underlying. The boolean value returned informs whether the reported value is valid. Invalid means chainlink is reporting invalid data (<=0 price) or the contract is paused.
This method is pausable. If paused, it won't revert but it will return valid as false

isOutdated

1
function isOutdated() external view returns (bool);
Copied!
Returns false unless Chainlink is reporting invalid data

chainlinkOracle

1
function chainlinkOracle() external returns (AggregatorV3Interface);
Copied!
Returns the referenced Chainlink price feed for the oracle.

oracleDecimalsNormalizer

1
function oracleDecimalsNormalizer() external returns (uint256);
Copied!
Return 10^(decimals) for the amount of decimals the Chainlink price feed uses

Public State-Changing Functions

update

1
function update() external returns (bool);
Copied!
returns true as no update logic is needed
This method is pausable

ABIs

Last modified 7mo ago