Core Contracts

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

Ineffective pause mechanism in `veRAACToken`

Summary

The veRAACToken contract implements a whenNotPaused modifier but lacks any functionality to modify the pause state. This makes the pause safety mechanism completely ineffective, as the contract can never be paused even in emergency situations.

Vulnerability Details

The contract includes:

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

The whenNotPaused modifier is used on critical functions like lock, increase, and extend. However, there are no functions in the contract that modify the paused state variable and therefore, it remains permanently set to its default value of false.

Impact

The inability to pause the contract removes a critical safety mechanism used to stop all operations in case of detected vulnerabilities, which makes the contract less secure than its design suggests.

Recommendations

Consider implementing a pause mechanism using OpenZeppelin's Pausable contract.

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.