EthXHandler
Inherits: UniswapFlashloanBalancerSwapHandler, UniswapFlashswapHandler, BalancerFlashloanDirectMintHandler
Handler for the ETHx collateral.
State Variables
STADER_DEPOSIT
Functions
constructor
Creates a new EthXHandler
instance.
Parameters
Name | Type | Description |
---|---|---|
|
| of ETHx. |
|
|
|
|
|
|
|
| Address for the Stader deposit contract. |
|
| Address of the |
|
| Address of the WSTETH/ETH Uniswap V3 pool. |
|
| Address of the ETHx/ETH Uniswap V3 pool. |
|
| 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
Name | Type | Description |
---|---|---|
|
| The WETH amount to deposit. [WAD] |
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| Desired output amount. [WAD] |
Returns
Name | Type | Description |
---|---|---|
|
| Eth required for desired lst output. [WAD] |