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

No Mechanism for Removing Stale User Data for FjordPoints contract

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

The contract accumulates and stores user-specific information in the users mapping. Over time, this data could grow and become stale, especially for users who no longer interact with the contract.

  • Risk: Accumulation of stale data could lead to increased gas costs for operations involving the users mapping.

  • Solution: Consider adding a mechanism to clean up or archive user data that is no longer needed.

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.