Users can frontrun sendProfit to receive rewards immediately.
Function sendProfit is used to increase the totalProfit by sending some currency. After that, when the user claims the reward, the reward value will be the difference in totalProfit multiplied by the share. Therefore, by frontrunning sendProfit, users can stake a large number of tokens in advance and obtain more rewards.
Attackers can frontrun sendProfit to receive rewards immediately.
VSCode
The way rewards are calculated should take into account the duration of staking.
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.