EthPerWstEthRateProvider
Inherits: IRateProvider
Reports the price of wstETH in terms of ETH.
State Variables
ST_ETH_TO_ETH_CHAINLINK
WST_ETH
MAX_TIME_FROM_LAST_UPDATE
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
|
| The chainlink price feed for stETH/ETH. |
|
| The wstETH contract address. |
|
|
getRate
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
Name | Type | Description |
---|---|---|
|
| price of wstETH in ETH. [WAD] |