UNPKG

@alcorexchange/alcor-swap-sdk

Version:

​​ **npm** ``` npm i @alcorexchange/alcor-swap-sdk ``` **yarn** ``` yarn add @alcorexchange/alcor-swap-sdk ``` ## Usage ### Import:

9 lines (8 loc) 349 B
import { FeeAmount } from "../internalConstants"; export declare abstract class SwapMath { /** * Cannot be constructed. */ private constructor(); static computeSwapStep(sqrtRatioCurrentX64: bigint, sqrtRatioTargetX64: bigint, liquidity: bigint, amountRemaining: bigint, feePips: FeeAmount): [bigint, bigint, bigint, bigint]; }