UNPKG

@exromany/lido-csm-sdk

Version:

[![GitHub license](https://img.shields.io/github/license/lidofinance/lido-csm-sdk?color=limegreen)](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [![Version npm](https://img.shields.io/npm/v/@lidofinance/lido-csm-sdk?label=version)](h

12 lines 569 B
import { StethPoolData } from './types.js'; /** * Converts stETH shares to ETH amount using the current pool ratio. * Also works for converting wstETH to stETH. */ export declare const convertSharesToEth: (shares: bigint, { totalPooledEther, totalShares }: StethPoolData) => bigint; /** * Converts ETH amount to stETH shares using the current pool ratio. * Also works for converting stETH to wstETH. */ export declare const convertEthToShares: (eth: bigint, { totalPooledEther, totalShares }: StethPoolData) => bigint; //# sourceMappingURL=convert-shares.d.ts.map