WstEthReserveOracle
Inherits: ReserveOracle
Reserve oracle for wstETH.
State Variables
WST_ETH
Functions
constructor
Creates a new WstEthReserveOracle
instance.
Parameters
_wstEth
address
wstETH contract address.
_ilkIndex
uint8
of wstETH.
_feeds
address[]
List of alternative data sources for the WstEth exchange rate.
_quorum
uint8
The amount of alternative data sources to aggregate.
_maxChange
uint256
Maximum percent change between exchange rate updates. [RAY]
_getProtocolExchangeRate
Returns the exchange rate between wstETH and stETH.
In a slashing event, the loss for the staker is represented through a decrease in the wstETH to stETH exchange rate inside the wstETH contract. The stETH to ETH ratio in the Lido contract will still remain 1:1 as it rebases. stETH / wstETH = stEth per wstETH ETH / stETH = total ether value / total stETH supply ETH / wstETH = (ETH / stETH) * (stETH / wstETH)