Core Contracts

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

`_updateLastClaimTime` has not called

Summary

FeeCollector::_updateLastClaimTime has not called after claiming rewards.

Vulnerability Details

FeeCollector::_updateLastClaimTime

function _updateLastClaimTime(address user) internal {
lastClaimTime[user] = block.timestamp;
}

_updateLastClaimTime should be called after user claim the rewards. -> FeeCollector::claimRewards

Impact

not updating the last claiming reward time will affect the protocol.

Tools Used

Manual review

Recommendations

call the _updateLastClaimTime on the appropriate function claimRewards

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

_updateLastClaimTime not properly used to track rewards claim time

Support

FAQs

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