EIPsInsight research · Full report

Glamsterdam gas audit

The method, validation and caveats behind the EIP-8037 / 8038 scan. The numbers and charts live on the research page; this is the write-up.

Fork · Glamsterdam·EIP-8037 / EIP-8038·Updated · November 2026
Back to the numbers
01

Summary

Glamsterdam ships two state-gas repricings. EIP-8037 raises the cost of creating state and adds a state-gas reservoir; EIP-8038 reprices state access. No deployed bytecode changes, but the gas every transaction needs does, and code that makes fixed assumptions about gas can behave differently.

We ran a wide, shallow gas audit: a static scan of the 300 busiest mainnet contracts against the repricing's eight-invariant framework, flagging 115 candidates worth re-checking. The flags are candidates for review, not confirmed breaks. The headline take: the repricing is real, measurable and surgical - it hits state-creating operations hard and leaves pure execution untouched. Its single largest impact is on ERC-4337 account abstraction: steady-state validation is fine, but userOps that create state (wallet deployments, first SSTOREs) exceed their signed gas limits and break unrescuably (§03).

Create a new account
EIP-8037
now25,000
glam183,600
7.3×
Create a new storage slot
EIP-8037
now20,000
glam97,920
4.9×
Touch a cold account
EIP-8038
now2,600
glam3,000
1.2×

gas per operation · now (Osaka) vs Glamsterdam

02

Research methodology

The audit runs on EIPsInsight's own Ethereum archive node (Reth) and indexers. It is two stages.

Stage 1 · Static scan

Rank the busiest contracts on mainnet over the last 100,000 blocks, pull their verified source, and pattern-match it against the red-flag patterns in glamsterdam-gas-invariants (hard-coded gas literals, fixed reserves, refund-dependent accounting, try/catch that swallows failures). A match flags the contract. 115 of 300 matched.

Stage 2 · Differential replay

For a transaction under review, fork mainnet state at its parent block so execution sees exactly what the network saw, then run it twice: once under current (Osaka) rules, once under Glamsterdam rules, with balance, nonce and base-fee checks disabled so the gas schedule is the only variable. A tx that succeeds under Osaka and reverts under Glamsterdam is repricing-attributable; the Osaka success is the control.

Stage 3 · Node census

For population-level effects we query our archive node directly: each day we sample 1,500 low-gas plain transfers and check, at the parent block, whether the destination was empty (EIP-161: no code, nonce 0, balance 0), the exact trigger for the new state-creation cost. See §06.
03

Validation

The question that mattered most: does the repricing break ERC-4337 account abstraction? The EntryPoints sit on top of the flagged list by traffic, so the blast radius is enormous. The answer has two halves, and getting it right took two passes and one correction.

Steady-state validation holds. We traced real userOps: validateUserOp spends ~15,000 gas against a signed ~95,000 verificationGasLimit — about 80,000 of headroom. The repricing adds only a few thousand gas there, so a userOp that touches only existing state does not break. That is why the original "every userOp reverts" claim (34% / 26% / 50%) was a tooling artifact: for steady-state ops the headroom is real.

Validation gas: used vs signed budgetsteady-state user-ops (no new state)

green = validation gas used · grey = unused headroom · holds for steady-state ops; state-creating userOps exceed it (below)

But userOps that create state are a different story — and here we first under-called it. Tracing 40 recent userOps per EntryPoint with prestateTracer, ~53% create new state: a wallet deployment (a new account, +158,600) or a first-touch SSTORE (a new slot, +77,920). The median state-creating userOp adds +155,840 gas; the worst we saw on v0.7 added +1,015,720.

And callGasLimit / verificationGasLimit are signed into the userOp, so they cannot be raised without re-signing. 14 of 40 v0.7 userOps and 12 of 40 v0.6 create more state-gas than the entire ~80,000 validation headroom — they fail, and no gas-limit bump rescues them (unrescuable).

EntryPoint userOps by outcome under EIP-803740 real userOps each, our archive node

grey = steady-state (validation headroom holds) · green = creates state, fits · red = exceeds the signed limit, unrescuable

This matches the EF repricing-impact dashboard, which ranks eth-infinitism's EntryPoints the single most-affected entity (millions of unrescuable role-hits, ~150,400 wallet deployments out of gas). The honest result: the 4337 validation base holds for steady-state userOps, but state-creating userOps — deployments and first SSTOREs — break unrescuably, and that is the largest single impact of the repricing.

04

Challenges

The replay engine, twice

Our first differential replay used a gas-schedule build whose accounting was wrong: it produced per-tx deltas larger than the whole transaction, a physically impossible result that produced a false AA "hard-break." We then over-corrected to "AA is fine" from a steady-state sample. Both were wrong. The fix was to stop trusting any engine and measure state creation deterministically (prestate diff × confirmed EIP deltas) — which both kills impossible numbers and catches the real state-creation break (§03).

The scan over-flags

It is keyword-based, so it collides with unrelated code. The busiest hit, a Uniswap router, is flagged for "fixed gas reserves" on a line that is actually AMM liquidity reserves. And 44 of 115 match only generic proxy patterns, which is low signal. Confirming a genuine break needs per-contract review.

The spec is moving

EIP-8037/8038 are still being finalised, so both the invariant set and the exact gas numbers should be re-checked against the shipped spec before any flag is treated as settled.
05

Result analysis

The eight invariants are the quiet assumptions a gas repricing can turn false. Each line below is the assumption in plain terms, then the mechanism, with an X / 115 tag. Read that as: of the 115 flagged contracts, X contain source that touches this assumption. One contract usually matches several, so the counts add up to more than 115; they rank which assumptions appear most across the flagged set, not how many contracts break (none here are confirmed breaks).

Flagged contracts by invariantof 115 flagged
INV-196 / 115 flagged contracts touch this

A failed inner call no longer fails the whole transaction.

Contracts that make a low-level CALL and ignore the boolean result (or wrap it in try/catch) assumed an inner out-of-gas would bubble up and revert everything. Repricing can push an inner call out of gas where it previously succeeded; the caller swallows the failure and continues in an inconsistent state.

INV-373 / 115 flagged contracts touch this

A reverted call now hands a different amount of gas back to the caller.

When a sub-call reverts, the unused gas (minus the 1/64 the EVM retains) returns to the caller. Repricing changes how much gas the sub-call burns before reverting, so the amount handed back shifts. Contracts that budget the next step from the returned gas misbehave.

INV-632 / 115 flagged contracts touch this

Leftover gas after an out-of-gas call is now enough to keep going.

After a sub-call OOGs, the caller keeps 1/64 of the forwarded gas. Some contracts assume that remainder is too small to do anything and will safely revert. Under repricing the remainder can be large enough to continue into a path the author treated as unreachable.

INV-732 / 115 flagged contracts touch this

Fixed gas reserves and stipends are now too small.

Constants that reserve a fixed amount of gas for finalization or cleanup were sized against the old schedule. Repricing makes that tail cost more than the reserve, so it is exhausted. This is the mechanism people feared would break ERC-4337 validation, since the EntryPoint reserves gas against the signed verificationGasLimit — but our traces show that budget has ample headroom, so it holds (see Validation).

INV-228 / 115 flagged contracts touch this

Clearing a storage slot refunds gas mid-transaction.

Code that relies on the net cost of clearing storage (SSTORE refunds under the capped EIP-3529 schedule) breaks when access costs change the arithmetic. Accounting that assumes a refund offsets a later write comes out wrong.

INV-425 / 115 flagged contracts touch this

Hard-coded gas amounts are now too low.

A literal gas value forwarded to a CALL, such as call{gas: N}(…) or a fixed stipend, no longer covers the operation once state access is repriced upward, so it runs out of gas. The signed verificationGasLimit is exactly such a hard-coded budget, which is why ERC-4337 was the first suspect — but the traced headroom shows it holds (see Validation).

INV-820 / 115 flagged contracts touch this

A failed EIP-7702 delegation can be replayed.

EIP-7702 set-code authorizations interact with the repricing so that a delegation which failed in one context (for example on gas) can be re-submitted. Contracts assuming a 7702 delegation is single-shot need to re-check the authorization nonce path.

INV-512 / 115 flagged contracts touch this

gasleft() can move in ways that break gas metering.

Contracts that meter work by the delta of gasleft() between two points assume it only decreases monotonically. With repricing and refund timing, the measured gap can change magnitude or sign, breaking relayer accounting, gas auctions, and similar metering logic.

Two more cuts of the same 115 flagged contracts: what kind of contract they are, and how many of the eight invariants each one matched. The density cut is the honest health check on the scan itself, 44 of 115 match only one or two generic proxy patterns, so they are low-signal noise rather than real candidates.

What kind of contracts got flagged115 flagged, by type
How many invariants each flag matched89 of 115 match only 1–3 (low signal)

grey = low-signal (generic proxy patterns) · green = 4+ invariants, worth a closer look

From candidates to measured. A flag is not a cost. To turn candidates into numbers we traced 25 recent real transactions for each of the busiest state-creating contracts with prestateTracer, counted the new accounts and new storage slots each one actually creates, and applied EIP-8037's confirmed deltas (+158,600 per new account, +77,920 per new slot). No differential EVM, so no number can exceed what the transaction really does.

The result is that the repricing is surgical, not broad. Pure swaps create no new state, so a Uniswap V3 swap, the Universal Router and the Aave gateway come out at ~0 extra gas. The cost lands on state-creating paths: a V3 position mint adds a median +155,840 gas (up to +1.7M on a heavy mint), a first-time Seaport trade up to +2.3M, and a deposit forwarder a flat +314,440 every time.

Extra state-gas per transaction, by contractmedian (solid) → worst seen (faint), 25 real txs each

new account +158,600 · new storage slot +77,920 gas (EIP-8037) · swaps create no new state

A real adjacent cost, measured on our node

Not an EntryPoint break at all: contracts that create a fresh address and self-destruct it within the same transaction, the temporary deposit-address pattern used by some intent and bridging flows. We detected these on our node with trace_block, matching a created address that is also destroyed in the same tx, and found ~2,520 such transactions per day, concentrated in a handful of factories (one literally named EphemeralFactory). Under EIP-8037 each fresh account pays the full state-creation cost of 183,600 gas (up from 25,000), and because it is destroyed in the same transaction the old refund no longer offsets it.

Who runs the create-and-self-destruct patternshare of sampled events

one named “EphemeralFactory” · the state cost per fresh account rises 25,000 → 183,600 gas, unrefunded

06

Measured impact: new-account transfers

EIP-8037 changes one thing that touches ordinary users, not just contracts: a plain ETH transfer to a new (empty) account now costs ~204,600 gas (21,000 intrinsic + 183,600 new-account state gas), not the 21,000 almost everyone still sends. A transfer under that limit is included with a failed status: the fee is paid and the nonce consumed, but no ETH moves.

We measured it on our own archive node. Each day we sampled 1,500 low-gas plain transfers and checked, at the parent block, whether the destination was empty. Across a week, 17% of low-gas plain transfers went to empty accounts, giving a mean of ~99,134 transfers per day that would fail as-is, with 72% of them sitting exactly at the 21,000-gas default. Wallets and senders that hard-code 21,000 need to raise their limit before activation.

Plain transfers to new accounts that would fail, per daymeasured on our archive node

value transfer to an empty account now needs ~204,600 gas, not 21,000

Who needs to act. Reading the sender on the same sample: 97% of the at-risk transfers come from EOAs (wallets and exchange hot wallets), only 3% from contracts. And they concentrate: the top 15 senders alone originate 26% of them, so a handful of high-volume withdrawal wallets could fix a quarter of the problem by raising one gas limit. The busiest at scan time:

07

Compatibility & risk summary

Act - highest impact

ERC-4337 state-creating userOps (wallet deployments, first SSTOREs). ~53% of userOps create state; ~1 in 3 exceed the signed validation budget and break unrescuably (§03). The single largest impact of the repricing. Bundlers, SDKs and smart-account/factory authors must act; account migration may be required.

Low risk

ERC-4337 steady-state validation. A userOp that touches only existing state runs well inside its signed budget (~15k used of ~95k); that path does not break. The risk is state creation, above.

Watch / re-test

Position managers and state-creating paths. Measured (§05): a V3 position mint adds a median +155,840 gas (up to +1.7M), a deposit forwarder +314,440. Pure swaps are ~0. Most are user-fixable by raising the gas limit, but relayers and fixed-limit integrations should re-estimate.

Act

Create-and-self-destruct deposit-address flows. ~2,520/day on mainnet (§05), now 183,600 gas per fresh account vs 25,000, unrefunded. Teams using the temporary deposit-address pattern should re-cost it and consider CREATE2 counterfactual addresses instead.

Act

Plain transfers to new accounts at the 21,000-gas default. ~99,134/day would fail under EIP-8037 (§06). Wallets, exchanges and any pre-signed or hard-coded 21,000-gas flow must raise the limit to ~204,600 before activation.
08

Sources

  • ethereum/glamsterdam-gas-invariants · the eight-invariant framework the scan keys on.
  • EIP-8037 / EIP-8038 · the state-gas repricings entering Glamsterdam.
  • EIPsInsight archive node (Reth) + static scan audit-November 2026: every flagged contract is linked to the EIPsInsight contract inspector on the research page.
  • EIPsInsight archive node + transaction index: the new-account transfer census (§06), sampled 1,500/day over a week of live mainnet activity.
  • EIPsInsight archive node trace_block: the create-and-self-destruct census (§05), 200 blocks sampled across ~2 days.
  • EIPsInsight archive node prestateTracer: the per-contract state-creation measurement (§05) and the EntryPoint userOp measurement (§03), 40 real userOps per EntryPoint.
  • EF repricing-impact dashboard · cross-checked against our own node measurements; ranks the EntryPoints the most-affected entity.

AI Disclaimer: Some content or metadata on EIPsInsight may be AI-inferred or automatically compiled. If you spot any discrepancy, please let us know.