PriceFeedWrapper
Returns the price of an asset that doesnโt have a direct feed from Chainlink.
Written as a generic implementation it can be used, for example, to retrieve the price of wstETH
. Queries stETH / ETH
feed and multiplies it by the exchange rate between stETH / wstETH
before returning the price that itโs then used by the Auditor.
Public State Variables
baseUnit
Base units that are sent to the conversion function to get the asset rate.
conversionSelector
Function selector of the wrapper contract where the asset rate is fetched from.
decimals
Number of decimals that the answer of this price feed has.
mainPriceFeed
Main price feed where the price is fetched from.
wrapper
Address of the wrapper contract where the asset rate is fetched from.
View Methods
latestAnswer
Returns the price feed's latest value considering the wrapped asset's rate.
Returns
Type | Description |
---|---|
int256 | latest asset price. |
Last updated