During Hour 5 of Snowman First Flight, I performed a gas optimization review of Snowman.sol. Found several places using i++ in for-loops and unnecessary storage reads. These are not vulnerabilities but increase gas costs for users. No security issues found.
Severity: Low - Informational / Gas Optimization
Contract: Snowman.sol
Category: Gas
Higher gas costs for users. Over time with many transactions this wastes ETH. Does not affect security or functionality.
Solidity uses more gas for post-increment i++ vs pre-increment ++i in for-loops because i++ creates a temporary copy. Also, reading state variables multiple times inside loops instead of caching to memory costs extra SLOADs ~100 gas each.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.