An Empirical Study of Proxy Contracts at the Ethereum Ecosystem Scale
The proxy design pattern separates data and code in smart contracts into proxy and logic contracts. Data resides in proxy contracts, while code is sourced from logic contracts. This pattern allows for flexible smart contract development, enabling upgradeability, extensibility, and code reuse. Despite its popularity and importance, there is currently no systematic study to understand the prevalence, use scenarios, and development pitfalls of proxies. We present the first comprehensive study on Ethereum proxies. To gather a dataset of proxies, we introduce PROXYEX, the first framework to detect proxies from bytecode, achieving over 99% accuracy. Using PROXYEX, we collected a dataset of 2,031,422 Ethereum proxies and conducted the first large-scale empirical study. We analyzed proxy numbers and transaction traffic to understand their current status on Ethereum. We identified four proxy use patterns: upgradeability, extensibility, code-sharing, and code-hiding. We also pinpointed three common issues: proxy-logic storage collision, logic-logic storage collision, and uninitialized contracts, creating checkers for these by replaying historical transactions. Our study reveals that upgradeability isn't the sole reason for proxy adoption in DApps, and many proxies present issues like storage collisions and uninitialized contracts, which enhances the understanding of proxies and guide future smart contract research on the development, usage, quality assurance, and bug detection of proxies.
Authors
- Pawan Agrawal (ORCID: https://orcid.org/0000-0003-3712-7382)
- Prashant Shukla (ORCID: https://orcid.org/0000-0003-1286-4183)
- Zhiqiang Lin (ORCID: https://orcid.org/0000-0001-6527-5994)
- Xiaokuan Zhang (ORCID: https://orcid.org/0000-0002-4646-7146)
- Wuqi Zhang (ORCID: https://orcid.org/0000-0001-8039-0528)
- Xiangyu Zhang (ORCID: https://orcid.org/0000-0002-4858-5429)
- Zhuo Zhang (ORCID: https://orcid.org/0009-0008-6244-0817)
- Mengya Zhang
Institutions
- George Mason University (US)
- Purdue University West Lafayette (US)
- The Ohio State University (US)
Publication Details
- Published
- 2025-04-26
- DOI
- https://doi.org/10.1109/icse55347.2025.00083
- Citations
- 5
- Primary Topic
- Private Equity and Venture Capital
- Type
- article
- Field-Weighted Citation Impact
- 19.55