Staking contract has update function to update global index of earned rewards
This function has the following code:
Where if first clause (_balance > balance
) is true, the second one (_diff
) will always be true.
Extra gas usage for unnecessary check
Observation
Delete second 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.