UNPKG

@alcorexchange/alcor-swap-sdk

Version:

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

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