Search looks through the written questions first. The AI only answers when nothing matches.

What is a proxy and a contract upgrade?

Advanced · Updated

A proxy is a contract whose address you use, while the logic lives in another contract, the implementation. Calls are forwarded. Balances and data stay in the proxy's storage. An upgrade swaps the implementation address: the same address starts running new code. That is how many projects fix a bug without asking every person to move to a new contract. The address you saved does not change. The program it runs can change.

The risk is that the fix and the change of rules are the same door. Whoever controls the upgrade key, whether an account, a multisig or a DAO, can change what the contract does, within what the proxy pattern allows, including balance rules, fees or a pause. Some patterns have a delay and some swap immediately. On some proxies the upgrade function sits on the proxy, on others it sits on the implementation. Without being an auditor, the useful question is who can upgrade, with what delay, and whether the code verified today is actually what the proxy points at. Verified code does not mean safe code.

Informational text from Criptos.ai. It is not a buy or sell recommendation, and it is not tax advice. This is general information, not financial, tax or legal advice. We do not promise gains.

Related tools

In the glossary

In the Academy: Advanced · In the Academy · In the glossary

Related questions