setTreatCost
reverts if the current cost of the treat is 0, but does not check if the new cost is 0 or not. This prevents the owner from modifying the cost of the treat later on if mistakenly set 0.
The owner can mistakenly set the cost of the treat to be 0 and then will not be able to update it using setTreatCost
. This will lead to a DOS for that specific treat.
Low
Likelihood - Low (Since the owner can only set the cost of the treat, it is highly unlikely that the owner will set it to 0)
Impact - Low (It will only effect that specific treat whose cost is 0)
Manual Review
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.
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.