SAQARMAX | Senior Full-Stack, Blockchain & AI Developer

Backend Development (Go, Node.js, Python, PostgreSQL, MongoDB)

Blockchain Development (Solidity, Rust, Smart Contracts, Web3)

High-Load & Scalable Systems (Microservices, Caching, Distributed Systems)

AI Development & Automation (AI Agents, OpenAI/LLM Integration, Bots)

Full-Stack Web Development (React, Next.js, TailwindCSS, REST & GraphQL APIs)

SAQARMAX | Senior Full-Stack, Blockchain & AI Developer

Backend Development (Go, Node.js, Python, PostgreSQL, MongoDB)

Blockchain Development (Solidity, Rust, Smart Contracts, Web3)

High-Load & Scalable Systems (Microservices, Caching, Distributed Systems)

AI Development & Automation (AI Agents, OpenAI/LLM Integration, Bots)

Full-Stack Web Development (React, Next.js, TailwindCSS, REST & GraphQL APIs)

Blog Post

Glamsterdam Gas Repricing: Is Your Smart Contract Affected?

Glamsterdam Gas Repricing: Is Your Smart Contract Affected?
Isometric illustration of a scale weighing gas against storage blocks, representing Glamsterdam gas repricing for smart

Direct answer: Glamsterdam’s EIP-8037 and EIP-8038 rework how much gas certain operations cost and how gas is charged for state. Any contract, test or off-chain tool that depends on fixed gas costs or state-cost behavior may break. Ethereum core developers have delayed forking Hoodi while they gather reports, so teams should review their code against the published invariants list now and replace hardcoded gas assumptions with measured, adjustable ones.

Last updated: November 2026

Key Takeaways

  • EIP-8037 and EIP-8038 change both the gas charged for certain operations and how gas is charged for state, according to ethereum.org.
  • Chainsecurity has already found projects that would be vulnerable after Glamsterdam because they rely on invariants the two EIPs break.
  • Core developers delayed forking Hoodi until the issues are resolved, which gives teams a window to review code before mainnet timing is set.
  • Hardcoded gas limits, gas-bounded loops and fixed fee estimates are the most likely places for hidden gas assumptions to live.
  • Immutable contracts cannot be patched, so find out now whether you need a mitigation such as a wrapper, pause path or migration.

What happened with Glamsterdam, and why does it matter?

Glamsterdam, the next Ethereum upgrade, is being tested on testnets, and the testing has turned up a problem. According to the ethereum.org announcement, Chainsecurity found a few projects that would be vulnerable after Glamsterdam because they rely on certain invariants. EIP-8037 and EIP-8038 break those invariants.

As a result, the AllCoreDev group (ACD) decided to delay the hardfork process and not fork Hoodi until the issues are resolved. Work on Hegota continues in parallel. This is the practical point behind glamsterdam gas repricing smart contracts reviews: the Ethereum team is explicitly asking contract developers and auditors to check their own projects, because it cannot cover every project on Ethereum, especially off-chain code.

What do EIP-8037 and EIP-8038 actually change?

Per ethereum.org, the two EIPs rework how much gas is charged for certain operations and how gas is charged for state. That is the full extent of what the announcement states, so I will not guess at exact numbers here. The authoritative list is the repository of eight invariants that the Ethereum team published, with explanations, examples and prompts for checking your own project.

What matters for a founder is the category of risk. Gas costs are part of the environment your code runs in. If your logic, your tests or your fee tooling quietly assumes that an operation costs about what it costs today, a repricing can turn that assumption into a bug. The bug may be a transaction that runs out of gas, a loop that no longer fits in a block, or a safety check that no longer means what you thought.

Which contracts are most exposed to gas repricing?

State-heavy contracts deserve the first look, because one of the two EIPs changes how gas is charged for state. Think of contracts that write a lot of storage in one transaction or create new state per user. Typical examples are:

  • Batch minting, airdrop and distribution contracts that loop over many recipients.
  • Registries, allowlists and vaults that add per-user storage entries.
  • Factory contracts that deploy many child contracts or initialise many slots.
  • Keeper or relayer flows that submit transactions with a fixed gas limit.

Exposure is not limited to state-heavy code. Anything that forwards a fixed amount of gas, branches on remaining gas, or relies on a certain call always fitting within a limit is a candidate. This is my engineering judgment about where gas assumptions tend to hide, not a list from the announcement. Check the official invariants to see which of them apply to you.

Where do hidden gas assumptions live?

They live in more places than the Solidity source. The table below maps the common spots to what to look for and what to do.

Where Typical assumption What to do
Contract code Hardcoded gas value in an external call, or a gas-based branch Make the value configurable, or remove the dependence on it
Loops and batches A batch of N items always fits in one block Add pagination and lower, adjustable batch sizes
Tests Gas snapshots and exact-cost assertions Treat snapshots as signals, assert on behavior and bounds instead
Off-chain services Fixed gas limits in bots, relayers and keepers Call gas estimation on each transaction and add a safety margin
Frontends Hardcoded fee displays or cost warnings Pull estimates from the node at runtime
Business model Pricing or subsidies that assume a certain gas cost per action Re-run the cost model against new measurements

How do you review your contracts before Glamsterdam? A checklist

Work through these steps in order. For most teams it is a small job, because the work is mostly reading and targeted testing.

  1. Read the invariants. Go through the eight invariants in the repository linked from the ethereum.org post. For each one, write down yes, no or unsure for every contract you own.
  2. Inventory your contracts. List deployed contracts, planned contracts, proxies, libraries and any dependencies you vendored. Mark which are upgradeable and which are immutable.
  3. Search for gas-sensitive code. Look for explicit gas arguments in calls, uses of gasleft(), unbounded or large loops, and storage-writing functions called in batches.
  4. Review the off-chain side. Check bots, indexers, relayers, keepers and scripts for hardcoded gas limits or cost thresholds. The Ethereum team specifically notes that off-chain code is the hardest for it to cover.
  5. Fix the tests. Separate tests that check behavior from tests that check exact gas numbers. Keep the first kind as hard failures, and make the second kind informational.
  6. Test against Glamsterdam rules when you can. Since the upgrade is on testnets, run your suite and a few end-to-end flows in an environment that applies the new gas schedule, and compare results to today.
  7. Decide on mitigations. For anything affected, choose between a code change, a configuration change, a wrapper, a migration, or a pause path.
  8. Report what you find. If you are affected, the Ethereum team asks you to contact glamsterdam@ethereum.org, since your case may influence whether the spec changes.

What should your tests and fee estimates look like?

Stop treating gas as a constant. Your tests should prove that the contract behaves correctly and that key functions stay within a comfortable margin of the block gas limit, not that a function costs exactly a specific number.

Invariant and fuzz tests are well suited to this. If you want a refresher on what each style catches, our guide to unit, fuzz and invariant testing covers it. A useful addition for this upgrade is to fuzz batch sizes and storage-write counts, and assert that your functions either succeed or revert cleanly, never leaving state half-updated.

For fee estimates, ask the node every time and add headroom. Do not ship a table of per-action gas costs in a frontend or a bot. If your product shows users a cost, make that number come from live estimation, so the repricing is absorbed without a redeploy.

What if your contract is already deployed and immutable?

You cannot patch it, so the question becomes whether it is affected at all, and if so, what sits around it. Start with the invariant review. If a deployed contract does depend on a broken invariant, the options are usually limited to a new wrapper or router that handles gas differently, a migration to a new version, or an operational workaround such as smaller batches sent from your side.

If you have an upgradeable proxy, you have more freedom, but that is also a reason to be careful. Any upgrade should go through the same review and testing as an original release, and a gas-related change deserves independent eyes. Our explainer on smart contract audits helps you decide when that review is worth paying for.

Standardised vault and token contracts are not automatically safe or unsafe. Whether something like an ERC-4626 vault is affected depends on what its code does with gas and state, so check the specific implementation rather than the standard.

How much time do you have?

The announcement does not give a mainnet date, and I will not invent one. What it does say is that the fork process is delayed and Hoodi will not be forked until the issues are resolved. Ethereum core developers want to reach a pragmatic decision on upcoming AllCoreDev calls, and they need reports to do it. That includes whether a spec change could prevent the issues.

So there are two reasons to move now rather than wait. First, your findings can shape the outcome, and second, a review done early is cheap. A review done after a mainnet date is announced competes with everyone else for auditor time. If you expect to need outside help, see how long building and auditing a smart contract typically takes, and plan around it.

Who should own this review on your team?

For most teams, one senior contract engineer and one person who owns the off-chain services can finish the first pass in a few days. The contract engineer reads the invariants and the code. The services owner checks bots, relayers and frontends for fixed gas values. Product owners should join only at the end, to decide what to do about anything that is affected.

If you have no in-house Solidity expertise, or your contracts hold significant value, bring in an outside reviewer early. Chainsecurity and Dedaub are already working with the Ethereum team, but the team has been clear that it cannot cover every project. Your contracts are your responsibility.

Frequently Asked Questions

What are EIP-8037 and EIP-8038?

According to ethereum.org, they are part of Glamsterdam and rework how much gas is charged for certain operations and how gas is charged for state. Chainsecurity found that they break invariants some projects rely on. The exact details are in the invariants repository the Ethereum team published.

Has the Glamsterdam fork been delayed?

ethereum.org says ACD decided to delay the hardfork process and not fork Hoodi until the identified issues are resolved. Work on Hegota continues in parallel. No new date is given in the announcement.

How do I know if my smart contract is affected?

Check it against the eight invariants in the repository the Ethereum team created, which includes explanations, examples and prompts. Then search your code and off-chain services for hardcoded gas values, gas-based branching and large storage-writing loops.

Where do I report a Glamsterdam problem in my project?

The Ethereum team asks affected developers to email glamsterdam@ethereum.org. Reports help core developers decide whether a spec change could prevent the issues.

Sources

If you are not sure whether your contracts depend on gas behavior that Glamsterdam will change, an independent review is a quick way to find out. Our team does this kind of work as part of smart contract development services, from reading your code against the published invariants to hardening tests and gas handling.

About the author

— Maxim is a senior full-stack, blockchain and AI developer and the founder of Saqarmax. He designs and ships smart contracts, Web3 dApps, Telegram bots and Mini Apps, AI agents and backend APIs for founders. LinkedIn · GitHub · Telegram · Fiverr

Ready to start? See our Smart Contract Development Services, get in touch, or order on Fiverr.

Tags: