Math Utilities
#
mostSignificantBitReturns the most significant bit of a positive integer, starting with first bit = 0
#
encodeSqrtRatioX96Returns the sqrt ratio as a Q64.96 corresponding to a given ratio of amount1 and amount0
#
mulDivRoundingUpReturns (a * b) / denominator
#
addDeltaReturns x + y
#
getAmount0DeltaUsed to facilitate liquidity math using sqrtRatioX96 values
#
getAmount1DeltaUsed to facilitate liquidity math using sqrtRatioX96 values
#
getNextSqrtPriceFromInputUsed to facilitate liquidity math using sqrtRatioX96 values
#
getNextSqrtPriceFromOutputUsed to facilitate liquidity math using sqrtRatioX96 values