Convert a tick index into a price
IMPORTANT: floating point operations can reduce the precision of the result.
Make sure to do these operations last and not to use the result for further calculations.
Parameters
tick_index - The tick index to convert
decimals_a - The number of decimals of the base token
decimals_b - The number of decimals of the quote token
Convert a tick index into a price IMPORTANT: floating point operations can reduce the precision of the result. Make sure to do these operations last and not to use the result for further calculations.
Parameters
tick_index
- The tick index to convertdecimals_a
- The number of decimals of the base tokendecimals_b
- The number of decimals of the quote tokenReturns
f64
- The decimal price