KelpDaoLibrary
A helper library for KelpDao-related conversions.
Functions
depositForLrt
Deposits a given amount of ETH into the rsETH Deposit Pool.
Care should be taken to handle slippage in the calling function since this function sets NO slippage controls.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| Amount of ETH to deposit. [WAD] |
Returns
Name | Type | Description |
---|---|---|
|
| Amount of rsETH that was obtained. [WAD] |
getEthAmountInForLstAmountOut
Returns the amount of ETH required to mint a given amount of rsETH.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| Desired output amount of rsETH |
getLstAmountOutForEthAmountIn
Calculates the amount of rsETH that will be minted for a given amount of ETH.
Parameters
Name | Type | Description |
---|---|---|
|
| |
|
| Amount of ETH to use to mint rsETH |
Returns
Name | Type | Description |
---|---|---|
|
| Amount of outputted rsETH for a given amount of ETH |