If the update function is not updated, this function will not change any state.
When updateFor is called.
It is found in this statement:
This sentence will not be fulfilled, since the mapping balances of the recipient is 0.
Since it does not comply, this sentence would be activated:
The index variable is initialized to 0, so it wouldn't update the value for us either and neither would the balances.
Therefore it will never be updated.
Users will not earn rewards
Manual code review
Ensure correct operation of update else revert the 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.