Governance Timelock
A Governance Timelock is a smart contract mechanism that enforces a mandatory waiting period between the approval of a protocol change and its actual execution. This is a critical security feature in decentralized finance designed to protect users from malicious or hasty governance decisions.
If a proposal is passed to upgrade a protocol or drain a treasury, the timelock ensures the change does not take effect immediately. This gives community members time to review the proposed action and, if necessary, withdraw their capital or vote to veto the change.
It serves as a behavioral guardrail against flash loan attacks on governance or compromised administrator keys. The duration of the timelock is a key parameter that balances the need for rapid emergency responses against the need for community protection.