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

fix: add extra check for key.parameters unused bits #56

Merged
merged 3 commits into from
May 31, 2024

Conversation

chefburger
Copy link
Collaborator

Per internal discussion, this is to prevent the unused bits in key.parameters being leveraged by malicious ppl to create two same-setting pools

@ChefMist ChefMist self-requested a review May 30, 2024 14:09
@@ -1 +1 @@
32557
Copy link
Collaborator

Choose a reason for hiding this comment

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

will raise a PR to update this -- its changing because the input can be 0

_lpFee = uint24(bound(_lpFee, 0, LPFeeLibrary.TEN_PERCENT_FEE));

@ChefMist
Copy link
Collaborator

👍 can you review #60 so we can

1/ merge #60 into this
2/ approve this PR and merge into master

ChefMist
ChefMist previously approved these changes May 31, 2024
@ChefMist ChefMist merged commit f2abcc4 into main May 31, 2024
2 checks passed
@ChefMist ChefMist deleted the fix/extra-check-for-keyParameters-unused-bits branch May 31, 2024 03:36
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