Owner cannot call the setTreatCost function, when setting it for the first time.
When the owner wants to call the setTreatCost function and set the cost, he needs to pass this check:
But, the cost defaults to 0, which means, the owner cannot set the cost, because it doesn't pass this check.
Destroys whole contract's functionality.
Manual review
Remove the check completely, or create another function, that allows the owner to set the cost to 1. Then he can call setTreatCost function.
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.