-
Notifications
You must be signed in to change notification settings - Fork 33
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: contributor fee mitigations #301
fix: contributor fee mitigations #301
Conversation
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feat/contribution-fee #301 +/- ##
=========================================================
+ Coverage 60.54% 60.55% +0.01%
=========================================================
Files 63 63
Lines 2471 2477 +6
Branches 574 574
=========================================================
+ Hits 1496 1500 +4
- Misses 778 782 +4
+ Partials 197 195 -2
☔ View full report in Codecov by Sentry. |
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.
Some notes, otherwise looks good. It appears to address each of the following:
- Fix excess
ETH
is lost whenmaxTotalContributions
issue- We’re just going to revert when excess ETH is returned (in
receiver()
)
- We’re just going to revert when excess ETH is returned (in
- Fix
batchContributeFor
calling itself - Fix
gateKeeper
checks relying onmsg.sender
And looks like we are ignoring the following suggestions, which is fine:
- Add timelock for owner changing
feePerMint
- Allow user making contribution to himself through
ContributionRouter
to set delegate
function batchContributeFor( | ||
address[] memory recipients, | ||
address[] memory initialDelegates, | ||
uint256[] memory values, | ||
bytes[] memory gateDatas, | ||
bool revertOnFailure |
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 think it does, but note to self that we'll have to check with FE this doesn't break anything.
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.
good callout. Agree that it's probably fine.
Co-authored-by: Brian Le <[email protected]>
No description provided.