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

Gas Reversion in distributePoints Function for FjordPoints contract

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

The distributePoints function can consume a significant amount of gas if called frequently or if the totalStaked amount grows very large.

  • Risk: The function might fail due to out-of-gas errors, preventing points from being distributed.

  • Solution: Consider optimizing the gas usage of the distributePoints function, or limit the frequency with which it can be called.

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.