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