Written as a generic implementation it can be used, for example, to retrieve the price of
BTC/ ETHfeed and multiplies it by the exchange rate between
WBTC / BTCbefore returning the price that it’s then used by the Auditor.
function baseUnit() external view returns (uint256)
The base units are used to normalize the answer when multiplied by the second price feed rate.
function decimals() external view returns (uint8)
Number of decimals that the answer of this price feed has.
function priceFeedOne() external view returns (contract IPriceFeed)
Main price feed where the price is fetched from.
function priceFeedTwo() external view returns (contract IPriceFeed)
Second price feed where the asset's rate is fetched from.
function latestAnswer() external view returns (int256)
Returns the price feed's latest value considering the other price feed's rate.