Core Contracts

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

cancel Function Has an Incorrect Check

Summary

The cancel function incorrectly uses OperationAlreadyScheduled(id) instead of OperationAlreadyExecuted(id), which could prevent legitimate cancellations.

Vulnerability Details

function cancel(bytes32 id) external override onlyRole(CANCELLER_ROLE) {
if (_operations[id].timestamp == 0) {
revert OperationNotFound(id);
}
if (_operations[id].executed) {
@>>>revert OperationAlreadyScheduled(id);
}
delete _operations[id];
emit OperationCancelled(id);
}

Impact

Tools Used

Recommendations

if (_operations[id].executed) { revert OperationAlreadyExecuted(id); }

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 4 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.