Core Contracts

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

Extra delay is added to emergency withdrawal

Summary

In the veRAACToken contract when an emergency withdraw is scheduled it needs to wait for 3 days (an EMERGENCY_DELAY period) to be able to call the enableEmergencyWithdraw function in which another EMERGENCY_DELAY period is added. This means that it takes 6 days from an emergency withdrawal being scheduled to the time users can actually withdraw.

This might be the intended functionality but I'm reporting in case it isn't.

Impact

Extra delay period is added to execute an emergency action.

Tools Used

Manual review

Recommendations

Remove the extra emergency delay from the enableEmergencyWithdraw function:

function enableEmergencyWithdraw() external onlyOwner withEmergencyDelay(EMERGENCY_WITHDRAW_ACTION) {
- emergencyWithdrawDelay = block.timestamp + EMERGENCY_DELAY;
+ emergencyWithdrawDelay = block.timestamp;
emit EmergencyWithdrawEnabled(emergencyWithdrawDelay);
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Validated
Assigned finding tags:

veRAACToken implements two consecutive 3-day emergency delays (totaling 6 days), hindering timely emergency response when funds need to be withdrawn quickly

Support

FAQs

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