Core Contracts

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

TimelockController's 'cancel' function throws misleading error when cancel is called on an executed proposal

Vulnerability Details

`ITimelockController` interface contains error messages for each specific situation.

For example

/// @notice Thrown when operation is already scheduled
error OperationAlreadyScheduled(bytes32 id);
/// @notice Thrown when operation already executed
error OperationAlreadyExecuted(bytes32 id);

When the 'cancel' function is called on an already executed operation , it is expected to use the
error OperationAlreadyExecuted(bytes32 id);

But currently it reverts with the wrongl OperationAlreadyScheduled(id);error, which is misleading

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

Recommendations

Revert with the OperationAlreadyExecutederror

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

Lead Judging Commences

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