What Is Timelock?
A timelock is a smart contract mechanism that enforces a mandatory waiting period between when an action is proposed and when it can be executed. In DeFi governance, timelocks typically require 24-72 hours between a proposal being approved and its execution, giving the community time to review changes and withdraw funds if they disagree.
How Timelock Works
Timelocks protect against: malicious governance attacks (someone gaining voting control and instantly draining the treasury), compromised admin keys (an attacker can't immediately execute harmful changes), and hasty decisions (the delay allows for reflection and review). Major protocols like Compound, Aave, and Uniswap all use timelocks on governance actions.
Why It Matters for Traders
When evaluating DeFi protocol security, check the timelock duration on admin/governance actions. A 24-48 hour timelock means the community has time to detect and respond to malicious proposals. Protocols without timelocks (or with very short ones) on critical functions like parameter changes or contract upgrades carry significantly higher governance risk.