The function `SpookySwap::setTreatCost` does not validate the parameter `_cost`, allowing the cost of Treats to be set to zero and stay like that forever.
The cost of the treat is set only by the owner (in the constructor, in addTreat and in setTreatCost). That means the cost of the treat will always be greater than zero.
Rewards breakdown
nSLOC
109
This contest has a flat reward structure with the following payouts:
High
100 EXP
Medium
20 EXP
Low
2 EXP
Live
The contest is live. Earn rewards by submitting a finding.
Judging
Submissions are being carefully reviewed by our judges.