FluidWEETHCappedRate ​
Inherits:IWeETH, FluidCappedRate
Stores gas optimized and safety up and/or down capped exchange rate for WEETH / ETH contract.
WEETH contract; on mainnet 0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee
Functions ​
constructor ​
solidity
constructor(FluidCappedRate.CappedRateConstructorParams memory params_) FluidCappedRate(params_);
_getNewRateRaw ​
solidity
function _getNewRateRaw() internal view virtual override returns (uint256 exchangeRate_);
getEETHByWeETH ​
Get amount of eETH for {_weETHAmount} weETH
solidity
function getEETHByWeETH(uint256 _weETHAmount) external view override returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | Amount of eETH for {_weETHAmount} weETH |
getWeETHByeETH ​
Get amount of weETH for {_eETHAmount} eETH
solidity
function getWeETHByeETH(uint256 _eETHAmount) external view override returns (uint256);
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | Amount of weETH for {_eETHAmount} eETH |