Core Contracts

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

Fund missmanagement in `FeeCollector`

Summary

The RAACToken contract directly transfers tax fees to the FeeCollector contract through the ERC20 _update function, bypassing the FeeCollector's collectFee function. This creates a critical accounting issue where collected fees are not tracked in the FeeCollector's accounting system.

Vulnerability Details

In RAACToken.sol, the _update function directly transfers tax fees:|

super._update(from, feeCollector, totalTax - burnAmount);

By skipping the collectFee function, the contract fails to record fees properly, rendering the FeeCollector ineffective.

Impact

Because of this flaw, the distributeCollectedFees function will fail to distribute fees since collectedFees remains at 0. veRAAC holders and other stakeholders won't be able to receive their designated share of fees through the normal distribution mechanism and the only way of recovering the funds is through emergencyWithdraw, which is not intended for this purpose.

Recommendations

Modify RAACToken to route fee transfers through the collectFee function, ensuring accurate accounting and preventing fee distribution failures.

Updates

Lead Judging Commences

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

RAACToken::burn sends tax directly to FeeCollector without using collectFee(), causing tokens to bypass accounting and remain undistributed. `collectFee` is not used anywhere.

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

RAACToken::burn sends tax directly to FeeCollector without using collectFee(), causing tokens to bypass accounting and remain undistributed. `collectFee` is not used anywhere.

Support

FAQs

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