EthXHandler
Inherits: UniswapFlashloanBalancerSwapHandler, UniswapFlashswapHandler, BalancerFlashloanDirectMintHandler
Handler for the ETHx collateral.
State Variables
STADER_DEPOSIT
Functions
constructor
Creates a new EthXHandler
instance.
Parameters
_ilkIndex
uint8
of ETHx.
_ionPool
IonPool
IonPool
contract address.
_gemJoin
GemJoin
GemJoin
contract address associated with ETHx.
_staderDeposit
IStaderStakePoolsManager
Address for the Stader deposit contract.
_whitelist
Whitelist
Address of the Whitelist
contract.
_wstEthUniswapPool
IUniswapV3Pool
Address of the WSTETH/ETH Uniswap V3 pool.
_ethXUniswapPool
IUniswapV3Pool
Address of the ETHx/ETH Uniswap V3 pool.
_balancerPoolId
bytes32
Balancer pool ID for the ETHx/ETH pool.
_depositWethForLst
Unwraps weth into eth and deposits into lst contract.
Unwraps weth into eth and deposits into lst contract.
Parameters
amountWeth
uint256
The WETH amount to deposit. [WAD]
Returns
<none>
uint256
Amount of lst received. [WAD]
_getEthAmountInForLstAmountOut
Calculates the amount of eth required to receive amountLst
.
Calculates the amount of eth required to receive amountLst
.
Parameters
amountLst
uint256
Desired output amount. [WAD]
Returns
<none>
uint256
Eth required for desired lst output. [WAD]