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