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

Uv3: fix tick bitmap sync size error #256

Open
wants to merge 1 commit into
base: 0.7.0
Choose a base branch
from

Conversation

henopied
Copy link

@henopied henopied commented Jan 3, 2025

Many pools with small tick ranges (large tick spacing) would cause contract code to exceed chain size limit.

Motivation

I was facing errors due to the deploy contract being too large when there are many pools with large tick spacing. It is not sufficient in this case to simply limit the output size, but we need to limit the input query count. I also found the initial logic a bit confusing so I decided to rename it a bit to hopefully clarify it.

Solution

Added a cap of 100 range queries per group which seems to be about the max size which won't exceed the deploy limit. I would like to add tests for this but it doesn't appear to me that an appropriate test apparatus is in place. I would be open to adding one in a separate PR, but I would need some guidance.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@henopied henopied force-pushed the fix-uv3-tick-sync branch 6 times, most recently from 6fa419c to 2702caf Compare January 3, 2025 06:54
Many pools with small tick ranges (large tick spacing) would cause contract code to exceed chain size limit
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.

1 participant