A helper library for Swell-related conversions.
Returns the amount of ETH needed to mint the given amount of swETH.
Parameters
Name | Type | Description |
---|---|---|
Parameters
Name | Type | Description |
---|---|---|
Deposits ETH into the swETH contract and returns the amount of swETH received.
Parameters
Name | Type | Description |
---|---|---|
swEth
ISwEth
address.
lstAmount
uint256
Desired output amount. [WAD]
swEth
ISwEth
address.
ethAmount
uint256
Amount of ETH to deposit. [WAD]
swEth
ISwEth
address.
ethAmount
uint256
Amount of ETH to deposit. [WAD]