EzEthHandler
Inherits: UniswapFlashswapDirectMintHandlerWithDust
Handler for the ezETH collateral.
Functions
constructor
Creates a new EzEthHandler
instance.
Parameters
Name | Type | Description |
---|---|---|
|
| Ilk index of the pool. |
|
| address. |
|
| address. |
|
| address. |
|
| address of the wstETH/WETH Uniswap pool (0.01% fee). |
_mintCollateralAsset
Deposits the mint asset into the provider's collateral-asset deposit contract.
Parameters
Name | Type | Description |
---|---|---|
|
|
Returns
Name | Type | Description |
---|---|---|
|
| Amount of collateral asset received. [WAD] |
_getAmountInForCollateralAmountOut
Calculates the amount of mint asset required to receive amountLrt
.
Calculates the amount of mint asset required to receive amountLrt
.
Parameters
Name | Type | Description |
---|---|---|
|
|
Returns
Name | Type | Description |
---|---|---|
|
| Amount mint asset required for desired output. [WAD] |