Skip to content

Conversation

@nigeldelviero
Copy link

Related Issue

#954

Description of changes

  1. Fixed Calculation Logic in getMaxAmountInForPool:
  • Ensured correct order of sqrtPriceX96 values by adding conditional checks.
  • Added validation to verify that the current price is within the tick range.
  • Improved handling of edge cases such as price being exactly at boundaries.
  1. Enhanced Error Handling:
  • Added require statements to check if the price is within the acceptable range.
  • Proper error messages for out-of-range prices.

@nigeldelviero nigeldelviero requested a review from a team as a code owner February 26, 2025 07:37
@nigeldelviero nigeldelviero requested review from a user and louisbrown0212 March 5, 2025 19:41
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