The incorrect termination condition of the loop leads to gas wastage.
In the file MembershipFactory.sol, at line 114, a for loop assigns the value of dao.tiers[i].minted
to tierConfigs[i].minted
. The number of assignments depends on the variable dao.tiers.length
,
but the loop uses tierConfigs.length
as the termination condition. This results in tierConfigs.length - dao.tiers.length
unnecessary iterations.
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.