Ran 1 test for test/foundry/unit/StakingRewardsV2/StakingRewardsV2.t.sol:StakingRewardsV2Test
[PASS] test_1() (gas: 970284)
Logs:
604800
kwenta balance: 323200
usdc balance: 323200
Impact
The reward tokens for dust accumulation continue to accumulate in the contract, and users receive slightly smaller returns than expected. The accumulated kwenta tokens will be permanently trapped in the contract
Modern Grape Bull
Low/Info
There may be a dust amount of USDC/kwenta remaining in the contract, where kwenta will be permanently stuck
Summary
Due to rounding issues, there may be a dust amount of USDC/kwenta remaining in the contract, where kwenta will be permanently stuck
Vulnerability Detail
Due to the division accuracy issue of notifyRewardAmount in calculating RewardRate, there may be a dust amount of funds left in the contract
POC:
log:
Impact
The reward tokens for dust accumulation continue to accumulate in the contract, and users receive slightly smaller returns than expected. The accumulated kwenta tokens will be permanently trapped in the contract
Code Snippet
github:https://github.com/sherlock-audit/2024-07-kwenta-staking-contracts/blob/0527fb7425206a3338c23177416436c6286cedf9/token/contracts/StakingRewardsV2.sol#L651
Tool used
Manual Review
Recommendation