There is a redundant if check slightly increasing the gas price
In Staking.sol the update function checks if there are accumulated rewards. This if statement checks if the difference between the current balance and the recorded balance is greater than 0. This check is redundant because of the previous if statement that makes sure that _balance will be greater than balance, therefore diff will always be greater than 0.
The unnecessary if statement spends slightly more gas than needed. It also clutters the code.
Manual review
Remove the redundant if statement
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.