@pangolindex/sdk
Version:
🛠An SDK for building applications on top of Pangolin.
10 lines (9 loc) • 430 B
TypeScript
import JSBI from 'jsbi';
import { BigintIsh } from '../../constants';
/**
* Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
* @param amount1 The numerator amount i.e., the amount of token1
* @param amount0 The denominator amount i.e., the amount of token0
* @returns The sqrt ratio
*/
export declare function encodeSqrtRatioX96(amount1: BigintIsh, amount0: BigintIsh): JSBI;