The study introduces four gas-waste detectors integrated into the Slither static-analysis framework and applies them to 397 Solidity smart contracts from 53 Ethereum dApps, identifying 250 gas-waste instances.
Download verified-gas-opt-ppr.zip
- 53 dApps deployed on Ethereum Mainnet
- 397 Solidity smart contracts
- Each dApp is organized by its Ethereum contract address
- Each folder contains Solidity source files and corresponding analysis reports
The dataset is annotated using four detectors introduced in the paper:
cache-address-this— repeated use ofaddress(this)div-by-uint— division by unsigned integerssmaller-string— constant strings of 32 characters or fewerunnec-casting-same-type— unnecessary type casting to the same type
- All 53 dApps contained at least one of the analyzed gas-waste patterns.
- More than 50% of detected gas-waste instances involved division by unsigned integers.
- More than 90% of the dApps exhibited division-by-unsigned-integer gas inefficiencies.
- Approximately half of the dApps contained short constant strings that could potentially be optimized.
- Unnecessary same-type casting was the least common detected gas-waste pattern.
Optimizing Gas Consumption in Ethereum Smart Contracts: A Static Analysis Approach
Abdur Rehman Raza, Muhammad Hanzala, Khawir Mahmood, Shahzaib Tahir, Saifullah Khalid, and Asif Masood
2025 International Conference on Communication Technologies (ComTech), pp. 1–6, IEEE, 2025.
If you use the Gas53 dataset or its analysis results in academic work, please cite:
@inproceedings{raza2025optimizing,
title = {Optimizing Gas Consumption in Ethereum Smart Contracts: A Static Analysis Approach},
author = {Raza, Abdur Rehman and Hanzala, Muhammad and Mahmood, Khawir and Tahir, Shahzaib and Khalid, Saifullah and Masood, Asif},
booktitle = {2025 International Conference on Communication Technologies (ComTech)},
pages = {1--6},
year = {2025},
publisher = {IEEE},
doi = {10.1109/ComTech65062.2025.11034442}
}