Papers1 provider Ā· 1 record
March 24, 2026Ā· Research Square
preprint
Open access

Invariant-Based Verification of Smart Contract Upgrade Safety on Ethereum

Authors:Aanand SDeepti Vidyarthi

Abstract

Abstract Smart contract upgradeability is widely used in Ethereum to enable postdeployment fixes and feature evolution. However, upgrades can unintentionally violate safety assumptions, leading to storage corruption, interface inconsistencies, access-control regressions, and unsafe execution behavior. Existing analysis tools primarily focus on single-version vulnerabilities and offer limited support for reasoning about correctness across contract upgrades. This paper presents an invariant-based verification approach for smart contract upgrade safety on Ethereum. We formalize the upgrade safety using a set of cross-version invariants and define a global safe-state model that characterizes valid upgrade transitions. Based on this model, we design an automated verification framework that statically analyzes proxy-based upgrade patterns and detects violations related to storage layout evolution, ABI compatibility, initialization safety, delegatecall usage, and access-control preservation. The framework compares compiler-level artifacts from successive contract versions and supports modular, extensible detectors.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.