EthXHandler

Git Source

Inherits: UniswapFlashloanBalancerSwapHandler, UniswapFlashswapHandler, BalancerFlashloanDirectMintHandler

Handler for the ETHx collateral.

State Variables

STADER_DEPOSIT

IStaderStakePoolsManager public immutable STADER_DEPOSIT;

Functions

constructor

Creates a new EthXHandler instance.

constructor(
    uint8 _ilkIndex,
    IonPool _ionPool,
    GemJoin _gemJoin,
    IStaderStakePoolsManager _staderDeposit,
    Whitelist _whitelist,
    IUniswapV3Pool _wstEthUniswapPool,
    IUniswapV3Pool _ethXUniswapPool,
    bytes32 _balancerPoolId
)
    UniswapFlashloanBalancerSwapHandler(_wstEthUniswapPool, _balancerPoolId)
    IonHandlerBase(_ilkIndex, _ionPool, _gemJoin, _whitelist)
    UniswapFlashswapHandler(_ethXUniswapPool, false);

Parameters

_depositWethForLst

Unwraps weth into eth and deposits into lst contract.

Unwraps weth into eth and deposits into lst contract.

function _depositWethForLst(uint256 amountWeth) internal override returns (uint256);

Parameters

Returns

_getEthAmountInForLstAmountOut

Calculates the amount of eth required to receive amountLst.

Calculates the amount of eth required to receive amountLst.

function _getEthAmountInForLstAmountOut(uint256 amountLst) internal view override returns (uint256);

Parameters

Returns