The claimRewards function enables users to claim their pending rewards. However, it does not update the lastClaimTime mapping, which is responsible for tracking the last time a user claimed rewards. This omission can cause issues in tracking claim history, reward accrual mechanisms, and security validations dependent on claim timestamps.
The lastClaimTime mapping is designed to store the last timestamp when a user claims rewards.
The _updateLastClaimTime(address user) function is available to update this timestamp but is never called inside claimRewards().
As a result, even after a successful claim, lastClaimTime[user] remains unchanged, leading to inaccurate claim tracking.
Inaccurate Reward Tracking: Systems relying on lastClaimTime for reward calculations or time-based limits may behave incorrectly.
Manual Review .
Update lastClaimTime in claimRewards(): Call _updateLastClaimTime(user); after a successful reward claim.
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.