Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

`userRewards` mapping in FeeCollector contract doesn't track the accumulated rewards per user as expected.

Summary

userRewardssi supposed to track the accumulated rewards per user (see code documentation of the storage variable).

The problem is that this variable actually holds the totalDistributedvalue, updated in claimRewardswith

userRewards[user] = totalDistributed;

While it's actually used as a checkpoint to compute user rewards , this variable doesn't do what it is supposed to.

Impact

The impact of this issue is low.

Tools Used

Manual review.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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