The upgradeTier function allows to upgrade the tier level if the DAO is of type Sponsored. However, the the lower tier tokens are burned and the higher tier token is minted, the values for TierConfig.minted of the corresponding tier configuration are not updated. Also, for the higher tier, the new TierConfig.minted value needs to be verified and it must not be bigger than TierConfig.amount.
Proof of Concept:
Add the following test to MembershipFactory.test.ts in the "Upgrade Tier" describe block:
At a certain stage, one or more of the DAO tiers will have more members than specified in the configuration (TierConfig.amount). Also, thee maximum allowed number of members (DAOInputConfig.maxMembers) will be exceeded.
Manual Review
In the upgradeTier function, decrease the value of TierConfig.minted for the lower tier and increase the value of TierConfig.minted for the higher tier. Also, verify that TierConfig.minted does not exceed TierConfig.amount for the higher tier.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.