Core Contracts

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

veRAACToken cannot be paused

Summary

veRAACToken uses whenNotPaused (modifier not imported but written in contract) but cannot be paused or unpaused.

Vulnerability Details

In veRAACToken.sol, the whenNotPaused modifier is written with paused as a variable in the contract.

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

This modifier is used in some functions like lock()

function lock(uint256 amount, uint256 duration) external nonReentrant whenNotPaused {

However, there is no way to set paused to true in the contract.

Impact

whenNotPaused cannot be used

Tools Used

Manual Review

Recommendations

Have some setter functions to set the paused variable to true/false.

function setPause(bool _pause) external onlyOwner {
paused = _pause;
}
Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 month 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.