Formulas
Pool token price calculation
tokenA price in terms of tokenB:
sqrtPriceX64 ** 2 / 2 ** 128 * 10 ** (precisionA-precisionB)
tokenB price in terms of tokenA:
2 ** 128 / sqrtPriceX64 ** 2 * 10 ** (precisionB-precisionA)Last updated