Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Users can frontrun sendProfit to receive rewards immediately.

Summary

Users can frontrun sendProfit to receive rewards immediately.

Vulnerability Details

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.

Impact

Attackers can frontrun sendProfit to receive rewards immediately.

Tools Used

VSCode

Recommendations

The way rewards are calculated should take into account the duration of staking.

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.