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 review - require funder equals issuer #116

Merged
merged 37 commits into from
Feb 28, 2023

Conversation

FlacoJones
Copy link
Contributor

  • Adds the line require(msg.sender == bounty.issuer(), Errors.CALLER_NOT_ISSUER); to DepositManagerV1::fundBountyToken

NOTE: Since the bounty issuer is trusted and immutable, this converts would-be exploits of external users into user error of the issuer.

…g the Ongoing+TieredPercentage implementations, interfaces, and methods in OpenQV1 and ClaimManagerV1
…DDRESS_LIMIT, simply checks if token is whitelisted or not
@FlacoJones FlacoJones changed the title Fix review require funder equals issuer Fix review - require funder equals issuer Feb 26, 2023
This was referenced Feb 26, 2023
Copy link

@IAm0x52 IAm0x52 left a comment

Choose a reason for hiding this comment

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

Changes look good. Requires that funder is the issuer. This prevents a whole host of potential exploits in exchange for closing the otherwise open funding model.

@FlacoJones FlacoJones merged commit 8a700e8 into audit Feb 28, 2023
@FlacoJones FlacoJones deleted the fix-review-require-funder-equals-issuer branch August 10, 2023 02:30
@FlacoJones FlacoJones restored the fix-review-require-funder-equals-issuer branch August 10, 2023 02:30
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