The two state variables balance and index of Staking.sol are initiated explicitly to zero
Uint256's initial value is zero so there is no point in explicitly assigning zero value to it. The same goes for the index i in for loops. There is no need to initialize i = 0 .
Gas optimization
Manual review
Just leave these two state variables as uint256 public balance; and uint256 public index;
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.