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

Uncontrolled Use of pointsPerEpoch in distributePoints Function for FjordPoints contract

Line: https://github.com/Cyfrin/2024-08-fjord/blob/6614c7f97f6fb020f1a980215e7579615027ba8e/src/FjordPoints.sol#L184

The distributePoints function uses the pointsPerEpoch variable to calculate the points to distribute. However, if pointsPerEpoch is set incorrectly (e.g., to a very high value), it could cause excessive inflation or unintended distribution of tokens.

  • Risk: Improper setting of pointsPerEpoch could lead to severe economic consequences for the contract, including token devaluation.

  • Solution: Implement validation checks or limits on how high pointsPerEpoch can be set to avoid excessive distribution.

Updates

Lead Judging Commences

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