DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: high
Invalid

FjordPoints::distributePoints can cause DoS on every checkDistribution function

Vulnerability Details

In distributePoints function cheking if epoch has passed cause DoS on all functions that use checkDistribution.

Users must wait one week to use distribute points, stake or unstake cause one week hasn't passed from the last distribution.

if (block.timestamp < lastDistribution + EPOCH_DURATION) {
return;
}

As distributing point must be used before onStake and onUnstake if EPOCH_DURATION hasn't passed the function reverts.

And also last distribution is updated causing users to not be able to stake or unstake.

lastDistribution = lastDistribution + (weeksPending * 1 weeks);

Impact

DoS in FjordPoints

Tools Used

Manual Review

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 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.