Timelock controller: how to check the delay and roles

How to read a DeFi timelock controller's minimum delay and role holders, and how to find the emergency powers that sit outside it.

Published · Updated · Last verified · Onchain tools · Due-diligence checklists

A timelock is the gap between a decision to change a protocol and the change taking effect, and that gap is the window in which a depositor can leave. A timelock controller is the contract that enforces it. To check one, read its minimum delay and the holder of each role. Then look for any emergency role that can act without waiting.

This guide covers the OpenZeppelin TimelockController and the older Compound-style Timelock, with a live example read onchain on 30 November 2026. It follows our guide to upgradeable smart contracts, where the admin chain of a Compound III market ended at a timelock.

What is a timelock controller?

A timelock controller is a smart contract that holds admin rights over other contracts and will execute a queued call after a minimum delay has passed. Changes to the protected contracts must be scheduled in public and can be executed once the delay has passed.

OpenZeppelin’s documentation states the purpose in one line: placed as the owner of a contract, the TimelockController “enforces a timelock on all onlyOwner maintenance operations”, which gives users time to exit before a dangerous operation is applied. In TradFi terms it works like a mandatory notice period before a fund changes its terms.

What roles does a timelock controller have?

OpenZeppelin’s TimelockController uses role-based access, and each role answers a different question about control. The roles below come from the OpenZeppelin governance docs.

Role What it can do What to check
Proposer Schedules operations. The constructor also gives proposers the canceller role Who holds it: a multisig, a DAO governor or a single key
Executor Executes operations once the delay has passed Whether it is granted to the zero address, which lets anyone execute
Canceller Cancels pending operations Whether a party outside governance can block changes
Admin Grants and revokes the other roles Whether the optional deployer admin was renounced

The admin row matters most. OpenZeppelin says the optional admin can configure roles “without being subject to delay” and should be renounced afterwards. If an outside address still holds the admin role, it can grant itself the proposer role and the delay protects less than it appears to.

OpenZeppelin also warns about “proposer fight”. With several proposers, any one of them can cancel operations it disagrees with, including operations that would remove it.

How to check a timelock delay

The delay is a public value you can read from the contract. On an OpenZeppelin TimelockController, call getMinDelay(), which returns the minimum delay in seconds. On a Compound-style Timelock, call delay().

  1. Open the timelock address on Etherscan or another explorer and confirm the source is verified.
  2. In the Read Contract tab, call getMinDelay() or delay(). Convert seconds to days: 86,400 seconds per day.
  3. Check the logs for MinDelayChange events on an OpenZeppelin timelock, which record every past change to the delay.
  4. Check CallScheduled events to see recent operations, their targets and the delay applied to each one.
  5. Record the value with the block number and date of the read.

A short delay is easier to judge against something concrete. Compare it with how long a withdrawal takes on the same protocol. If exiting takes longer than the timelock, depositors cannot act on a queued change before it lands.

Can the delay be changed or skipped?

In both common designs, the delay can be changed, but the change must itself pass through the timelock. Skipping it depends on roles that sit outside the timelock.

OpenZeppelin’s updateDelay requires that “the caller must be the timelock itself”. That means a proposal to shorten the delay waits out the current delay first. Compound’s Timelock.sol applies the same rule to setDelay and sets hard bounds in code: MINIMUM_DELAY = 2 days and MAXIMUM_DELAY = 30 days. It also has a GRACE_PERIOD of 14 days, after which a queued transaction is stale and can no longer be executed.

The timelock does nothing for contracts it does not own. A protocol can route upgrades through a timelock and still give another address the power to pause markets or change parameters at once. That is why the next section matters.

Which emergency powers sit outside the timelock?

Emergency powers are rights to act without waiting for the delay, and they are often held by a multisig rather than by governance. You find them by listing every privileged role on every core contract, then marking which holders are the timelock and which are not.

Lido’s docs give a clear public example. The CircuitBreaker Committee is described as authorised “to pause designated core protocol contracts for a bounded duration in an emergency, without waiting for a DAO vote”. The same page states a quorum of 3/6. It also says the pause right is single-use per contract and must be re-assigned by a DAO vote afterwards.

That design is a disclosed bypass with limits. For each emergency role you find, record what it can do, who holds it, the signer threshold and any limit on duration or reuse. Our guide to multisig admin keys shows how to read the signers and threshold.

Worked example: the Compound Timelock

Compound’s networks/mainnet.json lists the Timelock at 0x6d903f6003cca6255D85CcA4D3B5E5146dC33925. Reading it at block 26529398 on 30 November 2026 gave these values.

Field Value read onchain Meaning
delay() 172800 seconds 2 days
MINIMUM_DELAY() 172800 seconds 2 days, fixed in code
MAXIMUM_DELAY() 2592000 seconds 30 days, fixed in code
GRACE_PERIOD() 1209600 seconds 14 days to execute after the delay
admin() 0x309a862bbC1A00e45506cB8A802D1ff10004c8C0 Contract whose name() returns “Compound Governor”

The governor at that address returns the same Timelock from its timelock() function, so the two contracts point at each other. In this design one address, the admin, controls the whole queue, and that admin is the governor contract. The governor’s own rules then decide how a proposal reaches the queue.

The delay here sits at the code minimum. That is a fact to record without judging it. Whether 2 days is enough depends on how long exit takes for the position you are reviewing.

What should a due diligence file record about a timelock?

A due diligence file should record the timelock address, the delay with the date and block it was read, every role holder and the list of contracts the timelock controls. Add these checks:

  1. Delay in seconds and in days, plus any hard minimum or maximum in code.
  2. Proposer, executor and canceller holders, or the single admin on a Compound-style timelock.
  3. Whether a deployer admin still holds rights.
  4. Every privileged role on core contracts held by an address other than the timelock.
  5. The protocol’s withdrawal time, set next to the delay.

Mark anything you could not read as “not verified”. An audit report will seldom settle these points, as our guide to what an audit does not cover explains, because auditors often assume privileged roles act in good faith. The due diligence checklists category collects the related steps.

Questions

What is the function of a timelock controller in governance?
It sits between an approved decision and its execution and enforces a minimum waiting period. OpenZeppelin describes the TimelockController as giving users of the controlled contract time to exit before a dangerous maintenance operation is applied.
Can a timelock delay be changed?
Yes, but in the common designs the change has to pass through the timelock itself. OpenZeppelin's updateDelay requires the caller to be the timelock, and Compound's Timelock.sol requires setDelay calls to come from the timelock and stay between 2 and 30 days.
How long should a DeFi timelock be?
There is no standard length. What matters is whether the delay is longer than the time you need to notice a queued change and withdraw. Compare the delay with the protocol's withdrawal or unbonding period.
Does a timelock stop emergency actions?
Not always. Many protocols give a separate role, often a multisig, the power to pause without waiting. Lido's docs, for example, describe a committee that can pause named contracts without waiting for a DAO vote. List those roles next to the timelock.

Sources

  1. OpenZeppelin Contracts 5.x docs, governance API (TimelockController)accessed
  2. OpenZeppelin Contracts 5.x docs, how to set up onchain governanceaccessed
  3. Compound protocol repo, Timelock.solaccessed
  4. Compound protocol repo, networks/mainnet.json (Timelock address)accessed
  5. Compound Timelock 0x6d903f6003cca6255D85CcA4D3B5E5146dC33925, delay() and admin() read via public RPC at block 26529398 (as of 30 Nov 2026)accessed
  6. Compound Governor 0x309a862bbC1A00e45506cB8A802D1ff10004c8C0, name() and timelock() read via public RPC (as of 30 Nov 2026)accessed
  7. Lido docs, Emergency Brakes multisigsaccessed