Who can upgrade a smart contract, and why it matters for your deposit

An “upgradeable” contract can get new code after you deposit. The question is not whether that is possible, but who holds the key, and how fast they can use it.

4 min read · updated 3 November 2026

Short answer

Whoever controls the proxy’s admin can replace the code behind your deposit. That key is one of four things: a single wallet, a multisig like a Safe, a timelock that makes every change wait, or nobody at all. Follow the key through every contract that owns another until you reach one of them.

Why a contract can change at all

Most DeFi apps deploy a proxy: a small contract that holds your deposit and forwards every call to a second contract with the actual code. Whoever controls the proxy can point it at new code. Your balance stays at the same address; the rules for it do not.

So “who can upgrade it” is the same question as “who can rewrite the rules for my money”. Contracts that are not proxies, and have no owner who can withdraw, cannot be changed by anyone.

The four answers you will find

One walletA single private key. Whoever holds it, or steals it, can change the code today.
Multisig (Safe)Several signers, a threshold like 5 of 8. Safer than one key; still able to act at once.
TimelockEvery change is queued in public and waits a fixed delay before it runs. Read the delay.
NobodyNo proxy and no owner who can withdraw: the code you see is the code you get.

Follow the key to the end

The owner of a contract is often another contract: a proxy admin, which is owned by a timelock, which takes orders from a Safe. Stopping at the first step tells you nothing. The answer is the last link: a wallet, a group of signers, or a delay you can see coming.

  1. Lending pool (proxy) holds the deposits
  2. Its admin is a ProxyAdmin contract
  3. The ProxyAdmin’s owner is a Timelock with a 7-day delay
  4. The Timelock takes proposals from a Safe that needs 5 signatures

A real example: app.hyperlend.finance

full check, 29 October 2026
$357M
behind a timelock that waits 7 days
$4.5M
behind a Safe that needs 5 signatures
$1,026
under one wallet
Open the HyperLend report

Check any dApp in a minute

Paste its link. Aegis opens the site, finds every contract it calls and follows each key to the end. Free, nothing to connect.