Skip to main content
DeFiintermediate

Timelock

Definition

Timelock — A smart contract mechanism that enforces a mandatory waiting period before certain actions can be executed, providing security against sudden malicious changes.

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.

Now You Know the Word. Learn the Skill.

Definitions are a start. Mastery is a course away.

Enter the Academy

Related Terms

Further Reading

Trade Smarter with Thrive

Live market context, AI-powered analysis, and a trading journal that helps you improve.

Get Started