Core Contracts

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

Fee Collector Address Restriction Prevents Disabling Fee Collection

Summary

The RAACMinter contract enforces a restriction that disallows setting the fee collector address to the zero address. This prevents administrators from disabling fee collection by setting the fee collector to address(0), potentially limiting flexibility in fee management.

Vulnerability Details

Within the setFeeCollector function of the RAACMinter contract, there is a check that reverts if the provided _feeCollector address is the zero address:

if (_feeCollector == address(0)) revert FeeCollectorCannotBeZeroAddress(); // @audit if feeCollector is not address(0) then next line cannot set to address(0) to disable fee collection
raacToken.setFeeCollector(_feeCollector);

This logic prevents setting the fee collector to address(0), which is often used as a means to disable fee collection. If the protocol’s intended behavior is to allow fee collection to be disabled, this revert condition unnecessarily restricts that functionality.

Impact

Operational Limitations: Administrators cannot disable fee collection by setting the fee collector to the zero address, which may be necessary in certain situations (e.g., to disable fees temporarily or permanently).

Reduced Flexibility: The inability to disable fee collection might lead to unintended fee accruals, potentially affecting users and the protocol’s economic model.

Tools Used

Manual audit

Recommendations

Reevaluate the Restriction: Review the intended fee management strategy to determine if disabling fee collection via setting the fee collector to the zero address is a valid use case.

Allow Zero Address (if appropriate): If disabling fee collection is desired, remove or modify the revert condition to allow _feeCollector == address(0).

Update Documentation

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACMinter::setFeeCollector prevents disabling fees by blocking zero address assignment

Support

FAQs

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

Give us feedback!