Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize position and factor out logic to compute compressed tick in TickBitmap #654

Merged
merged 5 commits into from
May 17, 2024

Conversation

shuhuiluo
Copy link
Contributor

Related Issue

Which issue does this pull request resolve?

Description of changes

This pull request is a part of #560 in an effort to ease the review process. It focuses on the position function and factors out logic to compute compressed tick in TickBitmap along with fuzz tests.

compressed :=
sub(
sdiv(tick, tickSpacing),
// if (tick < 0 && tick % tickSpacing != 0) then tick % tickSpacing < 0, vice versa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

hensha256
hensha256 previously approved these changes May 17, 2024
@hensha256 hensha256 merged commit edc9b10 into Uniswap:main May 17, 2024
5 of 6 checks passed
@shuhuiluo shuhuiluo deleted the tickbitmap-compress branch May 17, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants