Core Contracts

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

Lack of Pause Mechanism Implementation in veRAACToken.sol

Summary

The contract lacks any function to set the paused variable, rendering the pause functionality inoperative.

Vulnerability Details

In veRAACToken.sol, there is a modifier named whenNotPaused():

modifier whenNotPaused() {
if (paused) revert ContractPaused();
_;
}

This modifier is supposed to protect certain functions from being called when the contract is paused. However, there is no implemented function to set or update the paused variable within the contract. As a result, the paused state cannot be toggled, rendering the pause functionality effectively useless.

Impact

Since the paused variable can never be changed, the functions protected by whenNotPaused() can always be called. This undermines the intended safety measure of pausing critical operations during emergencies or maintenance windows, reflecting a significant governance and security gap.

Tools Used

Manual code review of veRAACToken.sol

Recommendations

Provide functions (e.g., pause() and unpause()) to toggle the paused variable. Ensure these functions are correctly restricted (e.g., only the owner or a valid governance contract can call them).

Updates

Lead Judging Commences

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

veRAACToken lacks the ability to configure `paused` variable

Support

FAQs

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