Variable `i_totalRewards` is not used in the contract.
Variable `i_totalRewards` is not used in the contract, thus consuming unnecessary gas when compiled.
When you compile a Solidity contract, all the declared variables are allocated in memory, resulting in gas consumption. Each assignment to a state variable consumes gas, even if the variable is not subsequently used.
Manual Review
Consider removing unused variables.
https://detectors.auditbase.com/remove-unused-variables-solidity
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.