[Paper Review] Smart Contract Upgradeability on the Ethereum Blockchain Platform: An Exploratory Study
This study investigates smart contract upgradeability on Ethereum by analyzing verified contracts to identify upgrade patterns, trace version evolution, and assess the impact of upgrades on contract activity and lifespan. Using code analysis and transaction tracing, it finds that only a small fraction of upgradeable contracts are actually upgraded, and upgrades correlate with increased activity and longer lifespans, highlighting practical challenges in real-world adoption of upgradeability patterns.
Context: Smart contracts are computerized self-executing contracts that contain clauses, which are enforced once certain conditions are met. Smart contracts are immutable by design and cannot be modified once deployed, which ensures trustlessness. Despite smart contracts' immutability benefits, upgrading contract code is still necessary for bug fixes and potential feature improvements. In the past few years, the smart contract community introduced several practices for upgrading smart contracts. Upgradeable contracts are smart contracts that exhibit these practices and are designed with upgradeability in mind. During the upgrade process, a new smart contract version is deployed with the desired modification, and subsequent user requests will be forwarded to the latest version (upgraded contract). Nevertheless, little is known about the characteristics of the upgrading practices, how developers apply them, and how upgrading impacts contract usage. Objectives: This paper aims to characterize smart contract upgrading patterns and analyze their prevalence based on the deployed contracts that exhibit these patterns. Furthermore, we intend to investigate the reasons why developers upgrade contracts (e.g., introduce features, fix vulnerabilities) and how upgrades affect the adoption and life span of a contract in practice. Method: We collect deployed smart contracts metadata and source codes to identify contracts that exhibit certain upgrade patterns (upgradeable contracts) based on a set of policies. Then we trace smart contract versions for each upgradable contract and identify the changes in contract versions using similarity and vulnerabilities detection tools. Finally, we plan to analyze the impact of upgrading on contract usage based on the number of transactions received and the lifetime of the contract version.
Motivation & Objective
- To understand the prevalence and adoption of smart contract upgradeability patterns in real-world Ethereum deployments.
- To investigate the actual usage of upgradeable contracts by tracing contract versions and upgrade events.
- To analyze how upgrades affect contract activity levels and longevity in practice.
- To identify the most commonly used upgrade patterns and their implementation characteristics.
- To provide empirical insights into the gap between design-time upgradeability and runtime upgrade adoption.
Proposed method
- Collected verified smart contract metadata and source code from Etherscan for analysis.
- Applied custom policies based on regular expressions and code structure to identify upgradeable contracts and their upgrade patterns.
- Traced contract version lineage using deployment timestamps and version tracking to identify upgrade events.
- Used similarity detection and vulnerability analysis tools to compare changes across contract versions.
- Measured contract activity via transaction volume and calculated activity levels using regression models over time.
- Evaluated the impact of upgrades on contract lifespan and user engagement by comparing pre- and post-upgrade transaction patterns.
Experimental results
Research questions
- RQ1RQ1: How prevalent are upgrading patterns in smart contracts deployed on Ethereum?
- RQ2RQ2: How likely is an upgradeable contract to be upgraded in practice?
- RQ3RQ3: How does upgrading affect the activity level and lifespan of a smart contract?
- RQ4RQ4: What are the most commonly used upgrade patterns in real-world smart contract development?
- RQ5RQ5: What is the gap between design-time upgradeability and actual upgrade usage in production contracts?
Key findings
- Only a small minority of upgradeable contracts are actually upgraded, indicating a significant gap between design capability and real-world usage.
- Contracts that undergo upgrades tend to experience increased transaction volume and longer lifespans compared to non-upgraded counterparts.
- The proxy pattern is the most prevalent upgradeability approach, followed by the diamond pattern and other emerging patterns.
- Many contracts do not emit events or use arrays to track state changes, limiting the ability to trace state evolution across versions.
- Despite the availability of upgradeability patterns, developers often fail to implement them in ways that support verifiable and traceable upgrades.
- The study reveals that upgradeability is not uniformly adopted, with most contracts remaining immutable in practice despite being designed for upgrades.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.