EthPerWstEthRateProvider
Was this helpful?
Was this helpful?
Inherits: IRateProvider
Reports the price of wstETH in terms of ETH.
Parameters
_stEthToEthChainlink
address
The chainlink price feed for stETH/ETH.
_wstETH
address
The wstETH contract address.
_maxTimeFromLastUpdate
uint256
Gets the price of wstETH in terms of ETH.
If the beaconchain reserve decreases, the wstETH to stEth conversion will be directly impacted, but the stEth to Eth conversion will simply be determined by the chainlink price oracle.
Returns
ethPerWstEth
uint256
price of wstETH in ETH. [WAD]