The buySnow() function allows purchasing zero tokens, unnecessarily minting zero supply while still emitting events.
If amount is set to zero, no tokens are minted but events are still emitted.
This bloats logs and may confuse indexers.
Wasted gas.
Event log pollution.
MEDIUM
MEDIUM
Add input validation:
require(amount > 0, "Cannot buy zero tokens");
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.