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
<none>
IRsEth
ethAmount
uint256
Amount of ETH to deposit. [WAD]
Returns
Name
Type
Description
rsEthAmountToMint
uint256
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
<none>
IRsEth
amountOut
uint256
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
<none>
IRsEth
ethAmount
uint256
Amount of ETH to use to mint rsETH
Returns
Name
Type
Description
<none>
uint256
Amount of outputted rsETH for a given amount of ETH