Under-Optimized Smart Contracts Devour Your Money
Not on the map. Why?
Abstract (arXiv)
Smart contracts are full-fledged programs that run on blockchains (e.g., Ethereum, one of the most popular blockchains). In Ethereum, gas (in Ether, a cryptographic currency like Bitcoin) is the execution fee compensating the computing resources of miners for running smart contracts. However, we find that under-optimized smart contracts cost more gas than necessary, and therefore the creators or users will be overcharged. In this work, we conduct the first investigation on Solidity, the recommended compiler, and reveal that it fails to optimize gas-costly programming patterns. In particular, we identify 7 gas-costly patterns and group them to 2 categories. Then, we propose and develop GASPER, a new tool for automatically locating gas-costly patterns by analyzing smart contracts' bytecodes. The preliminary results on discovering 3 representative patterns from 4,240 real smart contracts show that 93.5%, 90.1% and 80% contracts suffer from these 3 patterns, respectively.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Mar 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 2; 2025: 2; 2026: 1.
9 papers.
- 2024AuditGPT: Auditing Smart Contracts with ChatGPTcited by 9
- 2021Eth2Vec: Learning Contract-Wide Code Representations for Vulnerability Detection on Ethereum Smart Contractscited by 7
- 2025GasAgent: A Multi-Agent Framework for Automated Gas Optimization in Smart Contractscited by 5
- 2021Data-driven Smart Ponzi Scheme Detectioncited by 1
- 2022Deep Smart Contract Intent Detectioncited by 1
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generationcited by 1
- 2022Who is Gambling? Finding Cryptocurrency Gamblers Using Multi-modal Retrieval Methodscited by 0
- 2024A Survey on Blockchain-based Supply Chain Finance with Progress and Future directionscited by 0
- 2025Decentralized Weather Forecasting via Distributed Machine Learning and Blockchain-Based Model Validationcited by 0
- 2026SolAgent: A Specialized Multi-Agent Framework for Solidity Code Generation30 Jan 2026
- 2025Decentralized Weather Forecasting via Distributed Machine Learning and Blockchain-Based Model Validation12 Aug 2025
- 2025GasAgent: A Multi-Agent Framework for Automated Gas Optimization in Smart Contracts21 Jul 2025
- 2024A Survey on Blockchain-based Supply Chain Finance with Progress and Future directions14 Aug 2024
- 2024AuditGPT: Auditing Smart Contracts with ChatGPT5 Apr 2024
- 2022Who is Gambling? Finding Cryptocurrency Gamblers Using Multi-modal Retrieval Methods27 Nov 2022
- 2022Deep Smart Contract Intent Detection19 Nov 2022
- 2021Data-driven Smart Ponzi Scheme Detection20 Aug 2021
- 2021Eth2Vec: Learning Contract-Wide Code Representations for Vulnerability Detection on Ethereum Smart Contracts7 Jan 2021