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

Refactor nested ternary assignment in TickMath.getTickAtSqrtPrice #670

Closed
wants to merge 4 commits into from

Conversation

shuhuiluo
Copy link
Contributor

Factored out of #273.

Related Issue

Which issue does this pull request resolve?

Description of changes

The formula to calculate the 'tick' value in the TickMath library has been refactored for potentially better clarity. Instead of using the conditional operator for this calculation, it has been replaced with an equivalent 'if-else' structure which may provide clearer semantic understanding.

shuhuiluo added 2 commits May 20, 2024 16:49
The formula to calculate the 'tick' value in the TickMath library has been refactored for potentially better clarity. Instead of using the conditional operator for this calculation, it has been replaced with an equivalent 'if-else' structure which may provide clearer semantic understanding.
@shuhuiluo shuhuiluo force-pushed the get-tick-at-sqrt-price-1 branch from 3cb1bb2 to e2e0342 Compare May 20, 2024 21:04
@hensha256
Copy link
Contributor

Hi! Closing this as we are not going to be merging this change 🙏 we appreciate the time you took making this contribution!

@hensha256 hensha256 closed this Aug 26, 2024
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