The TimelockController contract mentions, EMERGENCY_DELAY for executing emergency actions.
The executeEmergencyAction() function doesn't impose this delay. Allows emergency executors to bypass the timelock mechanism entirely, defeating the purpose of the delay for emergency actions.
Enables emergency executors to execute actions without adhering to the delay mechanism.
Below is a detailed description on how to implement this check :
1.Introduce a new state variable to keep track of emergency scheduling timestamp :
uint256 private _emergencyScheduledTimestamp
2.Update the variable in scheduleEmergencyAction() function:
3.Check in executeEmergencyAction() function to see if the delay time has passed or not:
In this way we can keep a track of when the emergency actions are scheduled and verify if the delay for emergency actions have passed.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.