StaderLibrary
A helper library for Stader-related conversions.
Functions
getEthAmountInForLstAmountOut
Returns the amount of ETH needed to mint the given amount of ETHx.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Desired output amount. [WAD] |
getLstAmountOutForEthAmountIn
Returns the amount of ETHx 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 stader deposit contract and returns the amount of ETHx received.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |
depositForLst
Deposits ETH into the stader deposit contract and returns the amount of ETHx received. This function parameterizes the address to receive the ETHx.
Parameters
Name | Type | Description |
---|---|---|
|
| address. |
|
| Amount of ETH to deposit. [WAD] |
|
| to receive the ETHx. |