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 |
---|---|---|
|
| address. |
|
| Desired output amount. [WAD] |
getLstAmountOutForEthAmountIn
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |
depositForLst
Deposits ETH into the swETH contract and returns the amount of swETH received.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |