@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
7 lines (6 loc) • 667 B
TypeScript
import { BigIntAble, Uint, Uint256String } from '../stores/library/int';
export declare function decodePriceSqrt(sqrtRatioX96: string, decimalsToken0?: number, decimalsToken1?: number, inverse?: boolean, disableFiveSigPrecision?: boolean): string;
export declare function encodePriceSqrt(reserve1: BigIntAble, reserve0: BigIntAble): Uint;
export declare function encodeFeeGrowth(feeGrowth: Uint256String, liquidity: Uint256String): string;
export declare function decodeFeeGrowth(feeGrowthX128: Uint256String, liquidity: Uint256String): string;
export declare function inversePriceSqrt(sqrtRatioX96: string, decimalsToken0?: number, decimalsToken1?: number): string;