RestakedSwellLibrary
A helper library for restaked Swell-related conversions.
Functions
getEthAmountInForLstAmountOut
Returns the amount of ETH needed to mint the given amount of rswETH.
Parameters
Name
Type
Description
rswEth
IRswEth
address.
lstAmount
uint256
Desired output amount. [WAD]
getLstAmountOutForEthAmountIn
Returns the amount of ETH needed to mint the given amount of rswETH.
Parameters
Name
Type
Description
rswEth
IRswEth
address.
ethAmount
uint256
Amount of ETH to deposit. [WAD]
depositForLrt
Deposits ETH into the rswETH contract and returns the amount of rswETH received.
Parameters
Name
Type
Description
rswEth
IRswEth
address.
ethAmount
uint256
Amount of ETH to deposit. [WAD]