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
_ltv
uint256
The loan to value ratio for rsETH <> wstETH
_reserveOracle
address
The associated reserve oracle.
_maxTimeFromLastUpdate
uint256
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
<none>
uint256
wstEthPerRsEth price of rsETH in wstETH. [WAD]