UNPKG

@bayswap/sdk

Version:

SDK for BaySwap smart contract

6 lines (5 loc) 527 B
import { DetailedPoolInfo } from '../modules/query'; export declare const getAmountOut: (pool: DetailedPoolInfo, amtIn: bigint, reverse: boolean) => bigint; export declare const calcOptimalValues: (pool: DetailedPoolInfo, amtX: bigint, amtY: bigint) => [bigint, bigint]; export declare const convertWithCurrentPrice: (coinIn: bigint, reserveIn: bigint, reserveOut: bigint) => bigint; export declare const calReturnedCoinsAfterBurnt: (xReserve: bigint, yReserve: bigint, curSupply: bigint, burntLp: bigint) => [bigint, bigint];