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: use percentages in schedule #28

Merged
merged 3 commits into from
Dec 21, 2024
Merged

fix: use percentages in schedule #28

merged 3 commits into from
Dec 21, 2024

Conversation

andreivladbrg
Copy link
Member

@andreivladbrg andreivladbrg commented Dec 20, 2024

Closes #27

Note: unlike tranches percentages, here, we don't need to ensure that the unlock amounts sum equals the claim amount

@andreivladbrg andreivladbrg marked this pull request as draft December 20, 2024 14:13
@andreivladbrg andreivladbrg force-pushed the fix/unlock-amounts branch 2 times, most recently from 09fc56e to 525ab17 Compare December 20, 2024 14:26
test: update tests accordingly
@andreivladbrg andreivladbrg force-pushed the fix/unlock-amounts branch 2 times, most recently from 5ef8e4d to abe3961 Compare December 20, 2024 14:44
@andreivladbrg andreivladbrg marked this pull request as ready for review December 20, 2024 14:46
@smol-ninja
Copy link
Member

In SablierMerkleLL's constructor, why are you not verifying that the sum of percentages <= 100%? If it exceeds, campaign creator will not know until the first claim is made, which will then fail.

@andreivladbrg
Copy link
Member Author

andreivladbrg commented Dec 20, 2024

In SablierMerkleLL's constructor, why are you not verifying that the sum of percentages <= 100%? If it exceeds, campaign creator will not know until the first claim is made, which will then fail

due to this: https://github.com/cantinasec/review-sablier-3/issues/1
as we did for tranched pcts

Copy link
Member

@smol-ninja smol-ninja left a comment

Choose a reason for hiding this comment

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

Thanks for doing it so quickly. LGTM.

@andreivladbrg andreivladbrg merged commit 84251c8 into main Dec 21, 2024
7 checks passed
@andreivladbrg andreivladbrg deleted the fix/unlock-amounts branch December 21, 2024 12:10
@smol-ninja smol-ninja changed the title fix: use percantages in schedule fix: use percentages in schedule Dec 21, 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.

Change the amount based variables in MerkleLL.Schedule to percentages
2 participants