Description: Using boolean values in mappings is inefficient from a gas perspective. Each slot in storage is 32 bytes, but we only need 1 bit to store a boolean.
Impact:
Unnecessary gas consumption during storage operations
Higher deployment costs
Increased transaction costs for users
Gas Savings:
Storage Write (Original): ~20,000 gas
Storage Write (Optimized): ~5,000 gas
Potential savings: ~15,000 gas per storage operation
Recommended Mitigation:
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.