The update function in the smart contract contains redundant condition checks, which can lead to increased gas costs.
The update function checks the condition if (_diff > 0). However, this check is superfluous, given the preceding if (_balance > balance) condition ensures _diff will always be positive.
Wasted gas due to unnecessary condition evaluations.
Manual Code Review
Remove the redundant if (_diff > 0) check in the update function.
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.