Issue description
You may experience fluctuation in gas fees when submitting contract call transactions with similar input data.
Resolution
Contract call execution relies on multiple operations, some of which are expensive and can vary in price. Even when submitting the same or similar transaction, you may incur different gas fees because the cost to run the associated operations can fluctuate significantly.
Learn more about Ethereum Virtual Machine (EVM) fees.
For more technical information on fees related to smart contracts specifically, you can read the Ethereum Yellow Paper.