#[G-01]: Don't declare the variable inside the loops
In every iterations the new variables instance created this will consumes more gas . So just declare variables outside the loop and only use inside to save gas.
#[G-02]: Use assembly to check for address(0)
Saves 6 gas per instance
#[G-03] : State variables should be cached in stack variables rather than re-reading them from storage..
Approximate gas saved: 500 gas
Caching will replace each Gwarmaccess (100 gas) with a much cheaper stack read. Less obvious fixes/optimizations include having local storage variables of mappings within state variable mappings or mappings within state variable structs, having local storage variables of structs within mappings, having local memory caches of state variable structs, or having local caches of state variable contracts/addresses.
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.