You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this calculation can result in 255 * TickMath.MAX_TICK
TickMath.MAX_TICK = 887272 = ~2^19.75 (takes 20 bits) so this overflows the int24 container since 255 is another 8 bits
The text was updated successfully, but these errors were encountered:
moodysalem
changed the title
TickMath.MAX_TICK cannot be tick spacing due to overflow/underflow in the tick bitmap
tick spacing cannot be TickMath.MAX_TICK due to overflow/underflow in the tick bitmap
Apr 26, 2022
https://github.com/Uniswap/core-next/blob/718cb055823bf68dfb34b2c90d8517b3e1f0f2b1/contracts/libraries/TickBitmap.sol#L64
this calculation can result in 255 *
TickMath.MAX_TICK
TickMath.MAX_TICK = 887272 = ~2^19.75 (takes 20 bits) so this overflows the int24 container since 255 is another 8 bits
The text was updated successfully, but these errors were encountered: