LidoLibrary
A helper library for Lido-related conversions.
Functions
getEthAmountInForLstAmountOut
Returns the amount of ETH needed to mint the given amount of wstETH.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Desired output amount. [WAD] |
getLstAmountOutForEthAmountIn
Returns the amount of wstETH that can be minted with the given amount of ETH.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |
depositForLst
Deposits ETH into the wstETH contract and returns the amount of wstETH received.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |