In addTreat()
, a new Treat can be added without any checks and in the event where a treat was added with 0 cost (_rate), the cost cannot be updated anymore in setTreatCost()
.
setTreatCost()
will revert when the cost of the treat is 0 and there is no way to update the cost.
Results
Instead of ensuring the cost of the current Treat is bigger than 0, ensure that the new _cost
should be bigger than 0.
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 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.