SwEthHandler
Inherits: UniswapFlashswapHandler, BalancerFlashloanDirectMintHandler
Handler for the swETH collateral.
Functions
constructor
Creates a new SwEthHandler
instance.
Parameters
Name | Type | Description |
---|---|---|
|
| of swETH. |
|
|
|
|
|
|
|
| Address of the |
|
| Address of the swETH/ETH Uniswap V3 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] |