How Can a Time-Lock Function Mitigate the Risk of a Malicious Contract Deployment?
A time-lock function delays the execution of critical administrative actions, such as deploying a new contract or upgrading logic. This delay gives the community and auditors a window of time to review the proposed changes.
If a malicious change is detected, governance can vote to cancel the execution before the time-lock expires.