Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Unnecessary Use of delete in distributeCollectedFees on FeeCollector.sol

Summary

The contract uses delete collectedFees; after distribution, which resets the collected fees state. This may not be necessary and could lead to issues with tracking the collected fees for historical purposes or troubleshooting.

Vulnerability Details

delete collectedFees;

Impact

This may remove important data that could be used for auditing or resolving disputes.

Tools Used

Recommendations

Avoid resetting the collected fees state unless explicitly required for the contract's logic. Instead, track the distribution history in a separate variable. So remove the delete collectedFees; line or replace it with a more robust tracking solution if needed.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.