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

Find lower tick bound for canonical ticks #5525

Closed
wants to merge 1 commit into from

Conversation

AlpinYukseloglu
Copy link
Contributor

@AlpinYukseloglu AlpinYukseloglu commented Jun 14, 2023

Part of: #5524

What is the purpose of the change

This PR demonstrates the minimum tick at which the tick to sqrt price conversion loses monotonicity due to precision.

Note that this is distinct from inherent non-monotonicity in ApproxRoot (#5517), which comes up at different values and requires a separate solution (likely related to rounding/guaranteeing some property about output)

General conclusion: canonical ticks seem to start mattering at tick -108000000, which corresponds to a min spot price of 10^-12

Testing and Verifying

N/A

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

@AlpinYukseloglu AlpinYukseloglu added V:state/compatible/no_backport State machine compatible PR, depends on prior breaks A:no-changelog labels Jun 14, 2023
@AlpinYukseloglu AlpinYukseloglu changed the title Find monotonicity bound for canonical ticks Find lower tick bound for canonical ticks Jun 16, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2023

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant