A helper library for KelpDao-related conversions.
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
<none>
IRsEth
ethAmount
uint256
Amount of ETH to deposit. [WAD]
Returns
rsEthAmountToMint
uint256
Amount of rsETH that was obtained. [WAD]
Returns the amount of ETH required to mint a given amount of rsETH.
Parameters
<none>
IRsEth
amountOut
uint256
Desired output amount of rsETH
Calculates the amount of rsETH that will be minted for a given amount of ETH.
Parameters
<none>
IRsEth
ethAmount
uint256
Amount of ETH to use to mint rsETH
Returns
<none>
uint256
Amount of outputted rsETH for a given amount of ETH