Core Contracts

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

Redundant Check for Paused State in `updateUserBoost()`

Summary

There is a double check for the contract paused state.

Vulnerability Details

In the updateUserBoost() function of the BoostController contract, there is a redundant check for the paused state using if (paused()) revert EmergencyPaused();. This check is unnecessary because the function is already decorated with the whenNotPaused modifier, which ensures that the function cannot be executed when the contract is paused.

Removing this redundant line will simplify the code and prevent any potential confusion about the contract's paused state handling.

Impact

Unnecessary gas spending.

Tools Used

Manual Review

Recommendations

Remove the redundant if (paused()) revert EmergencyPaused(); line from the updateUserBoost() function.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Appeal created

0xcryptanu Submitter
7 months ago
inallhonesty Lead Judge
7 months ago
inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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

Give us feedback!