SwEthSpotOracle
Inherits: SpotOracle
The swETH spot oracle.
State Variables
POOL
SECONDS_AGO
Functions
constructor
Creates a new SwEthSpotOracle
instance.
Parameters
getPrice
Gets the price of swETH in ETH.
Uniswap returns price in swETH per ETH. This needs to be inversed.
Returns
_getPriceInWadFromSqrtPriceX96
Converts a sqrtPriceX96 to a price in WAD.
Parameters