Upgradeable Contract
A smart contract whose logic can be updated after deployment, usually via proxy architecture.
Last Updated
2026-03-29
Related Concepts
What is Upgradeable Contract?
An upgradeable contract is a smart contract whose logic can be replaced after deployment without losing stored data or changing its address. This is achieved via a proxy pattern where a fixed contract holds state while a swappable implementation contract holds the logic.
How does Upgradeable Contract work?
- A proxy contract receives all user calls and forwards them via
delegatecallto an implementation contract. - The proxy holds the permanent address and all stored state.
- To upgrade, the owner points the proxy to a new implementation contract.
- The new implementation accesses existing state no data is lost.
- Storage layout must remain consistent across upgrades to prevent corruption.
Why does Upgradeable Contract matter?
It lets developers fix critical bugs and ship new features without forcing users to migrate funds to a new address essential for long-lived DeFi protocols.
Key features of Upgradeable Contract
- Proxy holds state; implementation holds logic
- Stable address and balances across all upgrades
- Typically governed by a multisig or DAO
- Storage layout must never be reordered between upgrades
Examples of Upgradeable Contract
Aave and Compound use upgradeable proxies to ship security patches and new features through governance votes. OpenZeppelin provides the industry-standard Transparent and UUPS proxy templates.
