FluidWSTETHCappedRate ​
Inherits:IWstETH, FluidCappedRate
Stores gas optimized and safety up and/or down capped exchange rate for WSTETH / ETH contract.
WSTETH contract; on mainnet 0x7f39c581f595b53c5cb19bd0b3f8da6c935e2ca0
Functions ​
constructor ​
solidity
constructor(FluidCappedRate.CappedRateConstructorParams memory params_) FluidCappedRate(params_);
_getNewRateRaw ​
solidity
function _getNewRateRaw() internal view virtual override returns (uint256 exchangeRate_);
stEthPerToken ​
Get amount of stETH for 1 wstETH
solidity
function stEthPerToken() external view override returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | Amount of stETH for 1 wstETH |
tokensPerStEth ​
Get amount of wstETH for 1 stETH
solidity
function tokensPerStEth() external view override returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | Amount of wstETH for 1 stETH |