Core Contracts

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

`whenNotPaused` will never work as we don't have a function to flip `paused` to true or false

Summary

whenNotPaused will never work as we don't have a function to flip paused to true or false

Vulnerability Details

paused is initialized, but we lack a function to flip it to true or back to false.

/**
* @notice Whether the contract is paused
*/
bool public paused;
modifier whenNotPaused() {
if (paused) revert ContractPaused();
_;
}

Impact

Contract can never be paused.
paused will always be false
whenNotPaused does not work. If a hack occurs in the future the funds have a higher likelihood to be stolen since the contract cannot be paused.

Tools Used

Manual review

Recommendations

Add a pause/unpause functions that would flit the variable and pause/unpause the contract.

Updates

Lead Judging Commences

inallhonesty Lead Judge
8 months ago
inallhonesty Lead Judge 7 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.

Give us feedback!