Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

During updateDAOMembership function call, it should be validated that 'minted' value does not exceed new 'amount' (max minted amount) values

Summary

During updateDAOMembership function call, it should be validated that minted value does not exceed new amount (max minted amount) values.

Vulnerability Details

It is not validated that the minted value exceeds the amount variable during updating the tiers of a DAO membership.

Impact

This should be validated to ensure the proper amount of tokens can be minted in a specific tier - otherwise minting is blocked for a tier.

Tools Used

Manual review

Recommendations

Add check to updateDAOMembership on MembershipFactory contract:

...
// Preserve minted values and adjust the length of dao.tiers
for (uint256 i = 0; i < tierConfigs.length; i++) {
if (i < dao.tiers.length) {
// @audit
require(tierConfigs[i].amount >= dao.tiers[i].minted);
tierConfigs[i].minted = dao.tiers[i].minted;
}
}
...
Updates

Lead Judging Commences

0xbrivan2 Lead Judge
about 1 year ago
0xbrivan2 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!