SwellLibrary

Git Source

A helper library for Swell-related conversions.

Functions

getEthAmountInForLstAmountOut

Returns the amount of ETH needed to mint the given amount of swETH.

function getEthAmountInForLstAmountOut(ISwEth swEth, uint256 lstAmount) internal view returns (uint256);

Parameters

getLstAmountOutForEthAmountIn

function getLstAmountOutForEthAmountIn(ISwEth swEth, uint256 ethAmount) internal view returns (uint256);

Parameters

depositForLst

Deposits ETH into the swETH contract and returns the amount of swETH received.

function depositForLst(ISwEth swEth, uint256 ethAmount) internal returns (uint256);

Parameters