Upgradeable smart contracts: how to check a proxy
How to tell if a DeFi contract is upgradeable, find its implementation and admin, and record who can change the code, using public tools.
A contract address can stay the same for years while the code behind it changes. That is how upgradeable smart contracts work: users call a proxy, and the proxy forwards each call to an implementation contract that an admin can replace. To check one, read the implementation and admin slots defined in EIP-1967, then trace who controls the admin.
This guide gives the method step by step, with a worked example on a live Compound III market, read onchain on 30 November 2026. It sits in our onchain tools cluster and pairs with what an audit does not cover.
What is an upgradeable smart contract?
An upgradeable smart contract is a proxy contract that holds the state and the user-facing address, and delegates its logic to a separate implementation contract that can be swapped. The proxy keeps balances and storage. The implementation holds the code that runs against that storage.
For a credit analyst, the closest analogy is a fund whose offering documents can be rewritten by a named party. The address you deposit into is stable. The rules applied to your deposit are whatever the current implementation says.
OpenZeppelin’s proxy documentation lists the patterns most teams use. A transparent proxy has a built-in admin and upgrade interface. UUPS places the upgrade mechanism in the implementation contract. Beacon proxies read their implementation from a separate beacon contract, which lets many proxies be upgraded in one transaction.
How do EIP-1967 storage slots work?
EIP-1967 fixes the storage positions where a proxy records the addresses it depends on, so any tool can read them from outside. Each slot is a hash minus one, which keeps it clear of the implementation’s own variables.
| Slot | Value defined in EIP-1967 | What it holds |
|---|---|---|
| Implementation | 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc |
Address of the logic contract |
| Admin | 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103 |
Address allowed to upgrade a transparent proxy |
| Beacon | 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50 |
Address of the beacon that supplies the implementation |
The implementation slot is bytes32(uint256(keccak256('eip1967.proxy.implementation')) - 1), as written in the EIP-1967 text. An empty admin slot does not prove the contract cannot be upgraded. In UUPS, the upgrade right sits in the implementation’s own access control, so you have to read that code.
How to check if a contract is a proxy on Etherscan
On Etherscan, a contract whose bytecode uses delegatecall gets a proxy check on its Contract tab. Once that check finds the implementation, the page adds “Read as Proxy” and “Write as Proxy” sections that use the implementation’s ABI. Use that as a starting point.
Etherscan’s proxy page also warns that it does not verify whether the code shown in those tabs is what executes. Treat the displayed address as a lead and confirm it against the storage slot.
How to read the implementation and admin with a node
Any Ethereum node can return a storage slot through the eth_getStorageAt call, and Foundry wraps the two reads you need in single commands. This method works on any EVM chain and does not depend on an explorer’s labels.
- Run
cast implementation <address> --rpc-url <rpc>. The Foundry reference says it fetches the implementation from the EIP-1967 slot, or from the beacon slot with--beacon. - Run
cast admin <address> --rpc-url <rpc>to read the admin slot. - If the admin is a contract, call its
owner()or check its roles. Keep going until you reach a multisig or a governance contract whose rules you can read. - Look up the implementation address on Etherscan or Sourcify and record its verification status.
- Open the verified implementation and search for functions such as
upgradeToAndCall, which OpenZeppelin lists for its proxies.
Record the block number with each read. The answer is true for that block and can change at the next upgrade.
Worked example: a Compound III market
Compound’s governance docs state that the governance system controls each Compound III proxy and the Comet implementation, and that an approved proposal points the proxy at a new implementation. Here is what that looks like for the USDC market on Ethereum, read at block 26529398 on 30 November 2026.
| Step | Address | Source |
|---|---|---|
| Market proxy (cUSDCv3) | 0xc3d688B66703497DAA19211EEdff47f25384cdc3 |
Compound comet repo, roots.json |
| Implementation slot value | 0x0B07565A8ef48170e15918b251EbD95109B23255 |
Storage read at block 26529398 |
| Admin slot value | 0x1EC63B5883C3481134FD50D5DAebc83Ecd2E8779 |
Storage read; named MAINNET_COMET_PROXY_ADMIN in the comet repo |
| Owner of that admin | 0x6d903f6003cca6255D85CcA4D3B5E5146dC33925 |
owner() call; named MAINNET_GOVERNOR_TIMELOCK in the comet repo |
The implementation address returned an exact match on Sourcify, with a verification record dated 7 November 2026 (UTC). That date tells you when the source was verified on Sourcify, and you should not read it as the upgrade date. Pull the proxy’s Upgraded events for that.
The chain ends at a timelock, so the next step in this file is to read its delay and find out who can queue changes. Our guide to the timelock controller covers that step, using this same Compound Timelock.
What should a due diligence file record about a proxy?
A due diligence file should record the proxy address, the current implementation, the upgrade path to the final controller and the date and block of every read. Five fields cover most cases:
- Proxy address and pattern (transparent, UUPS, beacon or custom).
- Implementation address, with its Etherscan or Sourcify verification status.
- The full admin chain, from the admin slot to the contract or multisig at the end.
- Any delay between an upgrade being approved and taking effect, with its source.
- Whether the audited commit matches the deployed implementation. The audit report guide covers that comparison.
Where a step cannot be confirmed, write “not verified” and leave the field open. A guessed admin is worse than a gap, because readers will treat it as checked.
Common traps when checking a proxy
Several patterns hide upgrade rights from a quick look. These are the ones to test before signing off.
Non-standard slots
Older or custom proxies may store the implementation outside the EIP-1967 slots. If the slot reads zero and the contract’s code is short and delegates calls, read the verified proxy source to find where the target address lives.
Upgrade rights in the implementation
With UUPS, the admin slot can be empty while the implementation contains an upgrade function guarded by a role. Read the access control in the implementation, and list each role holder.
Beacons shared across many proxies
OpenZeppelin notes that beacon proxies allow many proxies to be upgraded in a single transaction. One beacon owner can then change every vault or market that points at it. Record the beacon address and its owner once, and link every affected proxy to it.
Nested admins
The admin can be a contract whose owner is another contract. In the Compound example, the admin is a proxy admin contract owned by a timelock, which is itself controlled by a governor. Stop tracing when you reach a contract whose rules you have read and documented.
Where this fits in a protocol review
Upgradeability is one input among several. The check here tells you who can change the code. It does not tell you how fast they can act or whether the code they deploy will be reviewed.
Pair it with the multisig and timelock checks, and with the scope of the audits listed for the protocol. The due diligence checklists category collects those steps in one place.
Questions
- How do I know if a smart contract is upgradeable?
- Read the EIP-1967 implementation slot of the address with eth_getStorageAt, or run cast implementation. A non-zero value means the address delegates to another contract that can be swapped. Then look for an admin or beacon, and for any upgrade function in the verified code.
- Is an upgradeable contract a red flag?
- By itself, no. It means someone can change the code users rely on. What matters for due diligence is who holds the upgrade right, whether a timelock delays it, and whether the current implementation is verified and audited.
- What is the difference between a transparent proxy and a UUPS proxy?
- OpenZeppelin describes the transparent proxy as one with a built-in admin and upgrade interface in the proxy, and UUPS as an upgrade mechanism placed in the implementation contract. Both store the implementation address in the EIP-1967 slot.
- Can Etherscan tell me which code is running behind a proxy?
- It shows the implementation it detects, but Etherscan's own proxy page says it does not automatically verify that the implementation code shown is what executes. Confirm the slot value yourself and check verification on Etherscan or Sourcify.
Sources
- EIP-1967, proxy storage slots (created 24 April 2019)accessed
- OpenZeppelin Contracts 5.x docs, proxy APIaccessed
- Etherscan Information Center, proxy contractsaccessed
- Foundry reference, cast implementationaccessed
- Foundry reference, cast adminaccessed
- Compound III docs, governanceaccessed
- Compound comet repo, mainnet USDC roots.json (Comet address)accessed
- Compound comet repo, ChainAddresses.sol (CometProxyAdmin and Timelock addresses)accessed
- Ethereum mainnet storage and calls read via public RPC at block 26529398 (as of 30 Nov 2026): cUSDCv3 proxy 0xc3d688B66703497DAA19211EEdff47f25384cdc3accessed
- Sourcify API, verification record for implementation 0x0B07565A8ef48170e15918b251EbD95109B23255 (as of 30 Nov 2026)accessed