@gala-chain/api ∙ API
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)