Gas Consumption Model
Last updated
Last updated
The gas consumption model for smart contract execution in RuneVM is designed to ensure efficient use of computational resources. It quantifies the computational effort required to execute a transaction, thereby determining the associated cost.
The total gas consumption for a transaction is given by:
where represents the total gas consumption, are the gas costs, and are the computational complexities of each transaction. This model ensures that transactions are priced according to their computational requirements, incentivizing efficient use of resources and avoiding unnecessary computational expenditure.