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

feat: Update quoter MINIMUM_VALID_RESPONSE_LENGTH #14

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

ChefSnoopy
Copy link
Contributor

No description provided.

/// @dev int128[2] includes 32 bytes for offset, 32 bytes for length, and 32 bytes for each element
/// @dev Plus sqrtPriceX96After padded to 32 bytes and initializedTicksLoaded padded to 32 bytes
/// MINIMUM_VALID_RESPONSE_LENGTH = 192;
constructor(address _poolManager) Quoter(_poolManager, 192) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it better to make it constant

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is immutable in Quoter.sol.
share with BIn and CL.
you mean define a constant in both CLQuoter.sol and BINQuoter.sol ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

Copy link
Contributor

@chefburger chefburger left a comment

Choose a reason for hiding this comment

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

lgtm. this should partially fix internal-s3 btw

@ChefSnoopy ChefSnoopy merged commit d4ad2d2 into main Aug 30, 2024
2 checks passed
@ChefSnoopy ChefSnoopy deleted the fix/quoter-min-response-length branch August 30, 2024 03:16
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