createNewDAOMembership function currently allows the creation of tiers with zero prices.
The createNewDAOMembership function currently allows the creation of tiers with zero prices.
This occurs because the function accepts and stores tier configurations without validating that prices are greater than zero. When a tier price is set to zero, it enables free membership access, which undermines the DAO's economic model and platform fee structure.
In the joinDAO function, tier prices are used to calculate platform fees:
This results in zero fees when price is zero.
When price is zero:
Platform fees become zero (20 * 0 = 0)
No revenue is generated for the platform
No value capture for the DAO
Membership tokens can be minted without payment
Manual review
Add price validation in createNewDAOMembership:
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.