@exromany/lido-csm-sdk
Version:
[](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [](h
12 lines • 569 B
TypeScript
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