PriceFeedWrapper
Last updated
Was this helpful?
Last updated
Was this helpful?
Returns the price of an asset that doesn’t have a direct feed from .
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 .
Base units that are sent to the conversion function to get the asset rate.
Function selector of the wrapper contract where the asset rate is fetched from.
Number of decimals that the answer of this price feed has.
Main price feed where the price is fetched from.
Address of the wrapper contract where the asset rate is fetched from.
Returns the price feed's latest value considering the wrapped asset's rate.
Returns
int256
latest asset price.