Calculate Reward with update and updateFor when the calculate the reward their is no bracket to define the operations order and solidity is not good in math operations parentheses that are used to enclose a set of terms.
When we calculate share or ration it values result will be different if we divided and then multiple so better way is to put bracket to make it correct and save from math error.
It will provide wrong share which maybe more or less then actual values which cause lose in terms of money.
Foundry and Remix.
Assign Bracket as, I put is provide code examples.
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.