AddTreat function does not perform checks if a treat exist.
Owner could "accidentally" overwrite existing treat if the name is the same, resulting in modified rate or _metadatauri, and bloated treatNames array.
No checks in place for _name when parsing and immediate overwrite.
Overwrite existing treat if the name is the same, resulting in modified rate or _metadatauri, and bloated treatNames array.
Manual Review
Perform checks if treatList[_name] exists, before continuing, if owner wishes to modify anything from the treat, use another function such as setTreatCost.
Example of a check:
The function `addTreat` is called by the owner. The owner is trusted. There will be no duplicates.
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.