Core Contracts

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

[M-03] RAACMinter cannot disable the fees managed by RAACToken

Summary

Transfer and burn fees from operations with RAACToken cannot be easily disabled via setFeeCollector.

Vulnerability Details

Assuming that RAACMinter is correctly setup to be the owner of RAACToken as the code implies, the problem is that the setFeeCollector() function in RAACMinter excludes address(0) from the valid inputs, but this is the intended input to give to the setFeeCollector() in RAACToken.

Location

Impact

This results in the burn and transfer fees being always active, while the code suggests the possibility of disabling them at the owner's discretion.

Tools Used

Manual review.

Recommendations

Remove the revert on address(0) from setFeeCollector() in RAACMinter.

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!