Papers1 provider Ā· 2 records
January 1, 2026Ā· International Journal of Agile Systems and Management
article
Open access

Benchmarking gas-saving patterns in AI-generated DeFi smart contract

Authors:Andhika Nugraha Wira PratamaArya Wicaksana

Abstract

Integrating artificial intelligence (AI) like the large language model (LLM) for smart contract auto-generation standardises performance and security, reduces human error, and offers accessibility for non-developers.In decentralised autonomous systems (DASs) like decentralised finance (DeFi), the ability to AI-generate smart contracts strengthens the decentralisation and automation characteristics of the applications.In order to increase the effectiveness of a smart contract's fully decentralised and autonomous development, this study benchmarks gas-saving patterns in AI-generated DeFi smart contracts.Three DeFI smart contract development scenarios: token generation (ERC-20), tokenised vault (ERC-4626), and flash loan (ERC-3156), and the state-of-the-art LLMs (Code Llama and Code Llama -Python) are explored to study the gas-saving patterns of AI-generated smart contracts.These results help optimise DeFi smart contracts created by AI regarding gas fees for the same operations.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.