WeEthWstEthSpotOracle
Inherits: SpotOracle
The weETH spot oracle denominated in wstETH
State Variables
MAX_TIME_FROM_LAST_UPDATE
Functions
constructor
Creates a new WeEthWstEthSpotOracle
instance.
Parameters
Name | Type | Description |
---|---|---|
|
| The loan to value ratio for weETH <> wstETH |
|
| The associated reserve oracle. |
|
| The maximum delay for the oracle update in seconds |
getPrice
Gets the price of weETH in wstETH. (ETH / weETH) / (ETH / stETH) * (wstETH / stETH) = wstETH / weETH
Redstone oracle returns ETH per weETH with 8 decimals. This needs to be converted to wstETH per weETH denomination.
Returns
Name | Type | Description |
---|---|---|
|
| wstEthPerWeEth price of weETH in wstETH. [WAD] |