-
Notifications
You must be signed in to change notification settings - Fork 376
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 buyback and add fee split #11234
Fix buyback and add fee split #11234
Conversation
Fix buyback and add fee split
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
) internal { | ||
Beneficiary storage beneficiary = otherBeneficiaries[beneficiaryAddress]; | ||
require(beneficiary.exists, "Beneficiary not found"); | ||
totalFractionOfOtherBeneficiaries = totalFractionOfOtherBeneficiaries.add(newFraction); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be checking whether this is <= 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok checkTotalBeneficiary is doing that - should we have it <= 1 rather than <1 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have tested the edge case where burningFraction = 0, so would leave it like this.
…norepo into martinvol/fixFeeHandler
…norepo into martinvol/fixFeeHandler
Related issues