UNPKG

astra-cl-sdk-dev

Version:

⚒️ An SDK for building applications on top of Astra CL

10 lines (9 loc) 429 B
import JSBI from 'jsbi'; import { BigintIsh } from 'astra-sdk-core'; /** * 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;