Skip to content

@gala-chain/apiAPI


API > tickToSqrtPrice

Function: tickToSqrtPrice()

tickToSqrtPrice(tick): BigNumber

Parameters

tick: number

The input tick for the above formula

Returns

sqrtPrice A Bignumber representing the sqrt of the ratio of the two assets (token1/token0) at the given tick

Notice

Calculates sqrt(1.0001^tick)

Source

chain-api/src/utils/dex/tick.helper.ts:28