Inherits: UniswapFlashswapHandler, BalancerFlashloanDirectMintHandler
Handler for the swETH collateral.
Creates a new SwEthHandler
instance.
Parameters
Name | Type | Description |
---|---|---|
Unwraps weth into eth and deposits into lst contract.
Unwraps weth into eth and deposits into lst contract.
Parameters
Returns
Calculates the amount of eth required to receive amountLst
.
Calculates the amount of eth required to receive amountLst
.
Parameters
Returns
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_ilkIndex
uint8
of swETH.
_ionPool
IonPool
IonPool
contract address.
_gemJoin
GemJoin
GemJoin
contract address associated with swETH.
_whitelist
Whitelist
Address of the Whitelist
contract.
_swEthPool
IUniswapV3Pool
Address of the swETH/ETH Uniswap V3 pool.
amountWeth
uint256
The WETH amount to deposit. [WAD]
<none>
uint256
Amount of lst received. [WAD]
amountLst
uint256
Desired output amount. [WAD]
<none>
uint256
Eth required for desired lst output. [WAD]