LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Quantifying Sub-Optimality in Routing for Automated Market Makers

Open repository
Jul 24, 2026
Trading and Market Microstructure

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository reproduces the qualitative structure of the paper’s findings for concentration, benchmark ordering, heavy tails, and sandwich-related deterioration, but it does not reproduce the paper’s quantitative levels because all experiments are run on synthetic rather than real Ethereum data. Exp 1 is the closest match; Exp 2–5 are mainly methodological/qualitative demonstrations.

Important Context

The repository’s own results/RESULTS.md explicitly states that all experiments run on synthetic data, calibrated to mimic the paper’s target sample structure rather than reconstructed from actual Ethereum mainnet history. This is the single most important fact for interpreting all results.

That means:

  • good agreement on patterns is useful,
  • but close quantitative replication of the paper is not expected,
  • and any verdict stronger than partial reproduction would be unjustified.

Results Comparison

Experiment 1 — Baseline Sample Construction, Route Reconstruction, and Concentration Metrics

MetricPaperReproducedDiffStatus
Transactions after filter2,978,019
49,950
-2,928,069
Not matched
Total USDC-equivalent volume~1.2042e112.1577e9~-98.2%Not matched
Average trade size (USDC)~40,43743,198+2,761 (+6.8%)Within tolerance
Mean activation rate0.2830.3443+0.0613Materially high
Mean entropy0.0480.0489+0.0009Matched
Mean HHI0.9710.9701-0.0009Matched

Router-level comparison for Exp 1

The paper’s expected router-specific concentration targets in the user brief include:

  • Universal: 0.296 / 0.090 / 0.942
  • CoWSwap: 0.324 / 0.123 / 0.923
  • 1inch v4: 0.380 / 0.195 / 0.882
  • 1inch v5: 0.250 / 0.0004 / 0.9997
  • Odos v2: 0.355 / 0.175 / 0.892

But the repository’s router outputs are:

  • unlabeled
  • UniswapV3Router
  • UniswapUniversalRouter
  • SushiswapRouter

So the implemented router taxonomy does not match the paper’s specified router set, which is a material methodology/result deviation.

Observed router-level metrics:

  • UniswapUniversalRouter: activation 0.347, entropy 0.048, HHI 0.971
  • UniswapV3Router: activation 0.346, entropy 0.051, HHI 0.969
  • SushiswapRouter: activation 0.345, entropy 0.049, HHI 0.970
  • unlabeled: activation 0.342, entropy 0.048, HHI 0.970

These are tightly clustered and do not reproduce the paper’s expected heterogeneity across Universal / CoWSwap / 1inch / Odos.

Summary:
Exp 1 reproduces the general concentration story and gets entropy/HHI very close, but misses the actual sample size, total volume, activation rate, and router-level composition. This is a partial descriptive replication, not a full one.


Experiment 2 — Execution-Time Optimal Routing Benchmarks (SCO, FVO, G-FVO)

MetricPaperReproducedDiffStatus
Mean SCO shortfall (bps)~0.054677.6097+7.5550Not matched
Aggregate FVO loss (USDC)~21.39M150.27M+128.88MNot matched
Aggregate G-FVO loss (USDC)~24.20M150.16M+125.96MNot matched
Ordering: SCO < FVOYesYes—Matched qualitatively
Ordering: G-FVO near FVO / lower bps than FVOYes, gas-aware benchmark relevantYes (32.75 < 42.48 bps)—Matched qualitatively
Median SCO near zeroExpected for single-pool routes0.0—Matched qualitatively

Reproduced benchmark summary:

  • SCO: mean 7.61 bps, median 0.00
  • FVO: mean 42.48 bps, median 25.46, total loss 150.27M USDC
  • G-FVO: mean 32.75 bps, median 19.19, total loss 150.16M USDC

The repository highlights the central decomposition:

  • within-used-set inefficiency (SCO) is much smaller than
  • failure to activate additional pools (FVO / G-FVO gap)

That qualitative result is consistent with the paper. However, the quantitative gap is far too large versus the paper, especially the mean SCO shortfall, which should be near zero in the real study but is 7.61 bps here.

Summary:
The main economic ordering is reproduced, but the magnitudes are not. This is a qualitative-only reproduction.


Experiment 3 — State-Staleness Routing

MetricPaperReproducedDiffStatus
N=0→1 FVO deterioration (bps)~+1.287390.00-1.28739Not reproduced
N=0→1 G-FVO deterioration (bps)~+1.77525Not reported / effectively 0 framework result—Not reproduced
Monotonic worsening with NYesNo meaningful worsening—Not reproduced

The staleness outputs show essentially zero degradation:

  • in RESULTS.md: degradation is 0.00 bps for N=1–10
  • in exp3_staleness_per_n.csv: mean FVO output is almost unchanged across N
  • in exp3_staleness.csv: route-level stale vs execution outputs are identical in shown rows

The repo explains why: synthetic pool states are effectively stationary, so stale-state planning has no economic penalty.

That means Exp 3 does not reproduce the paper’s main finding, which is precisely about the value of timely information and the sharp one-block deterioration.

Summary:
Methodological framework may exist, but the substantive result is not reproduced.


Experiment 4 — Trade-Size Heterogeneity and Heavy Tails

MetricPaper ExpectationReproducedStatus
Heavy right tailYesYesMatched qualitatively
Mean > medianYesYes, all binsMatched
Smaller trades have larger proportional lossesExpected qualitativelyNot clearly supported for FVO; mixed for G-FVOPartial
Large trades drive dollar lossesYesYes, overwhelminglyMatched
Top tail contributes disproportionate loss shareYesYes, top 1% ≈ 96%Matched strongly

Per-bin reproduced results:

Size binCountMean FVO bpsMedian FVO bpsMean G-FVO bpsTotal FVO loss (USDC)
[100, 1K)9,79336.1125.086.0915,948
[1K, 10K)21,13536.8925.5528.60321,753
[10K, 100K)15,30641.5731.4540.512.18M
[100K, ∞)3,71694.7477.2894.62147.75M

Tail concentration:

  • Top 1% of route-level losses contributes 95.9% of FVO losses and 96.0% of G-FVO losses

This is a very strong heavy-tail result. However, the expected paper pattern that smaller trades suffer larger proportional losses in bps is not reproduced in FVO here; instead, the largest trades have the largest average bps losses. G-FVO is somewhat more nuanced because the smallest bin has much lower G-FVO mean bps than FVO, but not higher than larger bins.

Summary:
Heavy-tailedness is strongly reproduced, but the specific cross-size proportional-loss pattern is only partially reproduced.


Experiment 5 — Sandwich-Attack Subsample Analysis

MetricPaper ExpectationReproducedStatus
Sandwiched trades have worse shortfallsYesYes for SCO; weak/mixed for FVO/G-FVOPartial
Sandwiched subset shows wider/severe tail riskExpectedSome upward distortion indicatedPartial
CoWSwap less exposedExpectedNot testable from reported router setInconclusive

Reproduced subset summary:

SubsetNMean SCO bpsMean FVO bpsMean G-FVO bps
Full49,9507.6142.4832.75
Non-sandwiched31,8755.7442.7933.10
Sandwiched18,07510.9141.9232.11

Key observations:

  • SCO shortfall is materially higher for sandwiched trades: 10.91 vs 5.74 bps.
  • But FVO/G-FVO are not higher for sandwiched trades; they are slightly lower than non-sandwiched.
  • Synthetic sandwich incidence is 36.2%, which the repo itself admits is unrealistically high due to the event generator.

This gives partial support to the paper’s interpretation that MEV worsens execution quality, but only on the within-set mis-splitting dimension (SCO), not on full-venue inefficiency.

Summary:
Partial and noisy support only; quantitative incidence and broad benchmark differences are not convincingly reproduced.


Statistical & Economic Significance

Statistical significance

The repository does not report t-stats, standard errors, confidence intervals, or p-values for the main tables. Therefore:

  • formal statistical significance cannot be evaluated
  • no claim of statistical reproduction should be made

Under the prompt’s requirements, this is a material limitation. The analysis must remain descriptive/economic.

Economic significance

Economically, the reproduced outputs imply large execution losses:

  • FVO total shortfall: 150.27M USDC
  • G-FVO total shortfall: 150.16M USDC
  • top 1% of losses: ~96% of aggregate loss

These are economically large, but because they arise from synthetic data calibrated to exaggerate route splitting, they should not be interpreted as economically valid estimates for Ethereum routing inefficiency.

The economically meaningful findings that do survive qualitatively are:

  1. realized routing appears highly concentrated,
  2. most inefficiency comes from not activating more pools,
  3. losses are strongly right-tailed,
  4. sandwich-like events worsen at least some shortfall dimensions.

But the absolute economic magnitudes are not reliable as replications of the paper.


Discrepancies

  • Synthetic data instead of real blockchain data

    • This is the primary reason the paper’s levels are not matched.
    • It directly affects transaction count, volume, trade-size composition, routing behavior, staleness effects, and MEV incidence.
  • Router taxonomy differs from paper

    • The user-specified paper routers were Universal Router, CoWSwap, 1inch v4, 1inch v5, and Odos v2.
    • The repository reports UniswapV3Router, UniswapUniversalRouter, SushiswapRouter, and unlabeled.
    • This prevents meaningful router-level comparison to the paper.
  • Activation rate too high in Exp 1

    • Mean activation rate is 0.344 vs target 0.283.
    • This is consistent with the repo’s own note that the synthetic generator creates more split routes to exercise optimization code.
    • It likely explains inflated SCO/FVO/G-FVO shortfalls as well.
  • No genuine state dynamics for staleness

    • Exp 3 fails because stale and current states are effectively the same.
    • This removes the main mechanism the paper studies.
  • Sandwich incidence unrealistically high

    • 36.2% is much higher than plausible real-world rates.
    • The repo attributes this to small synthetic address pools and random bracketing matches.
  • Distribution by size differs from paper’s expected relative-bps pattern

    • In the reproduction, the >100K bin has the highest mean FVO/G-FVO bps.
    • The expected paper pattern was relatively worse proportional losses for smaller trades.

Methodology Issues

  1. Core deviation from study design:
    The experiments are not run on the required Ethereum mainnet sample. That alone prevents full reproduction.

  2. Exp 1 router labeling not aligned with spec:
    Missing paper-specific routers makes router-level findings non-comparable.

  3. Exp 3 not economically identified:
    The staleness experiment requires evolving block states; synthetic stationary states nullify the treatment.

  4. Lack of inferential reporting:
    No t-stats/p-values/SEs for benchmark differences or subgroup analyses.

  5. One file unreadable:
    results/exp2_shortfalls.csv could not be read due to unsupported encoding, though summary metrics were available elsewhere. This does not block high-level analysis but limits row-level verification.


Reliability

Positive signs

  • The repository includes a coherent results/RESULTS.md summarizing all five experiments.
  • Internal validations reported:
    • single-pool concentration identities,
    • share summation checks,
    • counterflow/threshold filtering,
    • benchmark monotonicity,
    • bin coverage,
    • sandwich heuristic checks.
  • 164 tests passed, which supports implementation consistency.

Red flags

  • Results are intentionally synthetic.
  • Some outputs are explicitly acknowledged by the repo as non-comparable in level terms.
  • Exp 3’s zero effect means the most distinctive result of the paper is absent.
  • Router-level outputs do not match the target router universe.

Overall confidence

  • Medium confidence that the code framework is internally consistent.
  • Low confidence that the numerical results reproduce the paper.
  • Combined verdict stays Medium only because the repository is transparent about its synthetic nature and passes tests.

Experiment-by-Experiment Verdict

Exp 1

Decision: PARTIALLY REPRODUCED
Why: Entropy and HHI are very close to target, average trade size is within tolerance, but sample size, volume, activation rate, and router-level composition do not match.

Exp 2

Decision: PARTIALLY REPRODUCED
Why: The key qualitative ranking SCO < FVO and the “under-activation dominates mis-splitting” story are reproduced, but all main magnitudes are far from paper targets.

Exp 3

Decision: NOT REPRODUCED
Why: The hallmark N=0→1 staleness deterioration is absent; degradation is essentially zero.

Exp 4

Decision: PARTIALLY REPRODUCED
Why: Heavy tails are strongly reproduced, but the expected smaller-trades/higher-relative-bps pattern is not cleanly replicated.

Exp 5

Decision: PARTIALLY REPRODUCED
Why: Sandwiched transactions have worse SCO shortfalls, but FVO/G-FVO differences are weak or reversed, and incidence is unrealistic.


Verdict

Final Decision: PARTIALLY REPRODUCED

Why:
The repository reproduces several qualitative mechanisms and patterns from the paper—high concentration, larger gains from broader pool activation than from within-set re-splitting, heavy-tailed inefficiency, and some sandwich-related deterioration. However, because the implementation relies on synthetic calibrated data rather than actual Ethereum mainnet reconstruction, the key quantitative targets are not reproduced, router-level mapping is non-comparable, and the staleness experiment fails outright on substance.

Additional Notes

  • No PNG images/charts were found in the repository results tree, so none can be embedded.
  • The strongest evidence in favor of the repo is methodological implementation consistency; the strongest evidence against full reproduction is the synthetic-data substitution.

Experiments

Baseline Sample Construction, Route Reconstruction, and Concentration Metrics for Ethereum WETH–USDC Same-Pair Routing

Construct the full transaction-level dataset of Ethereum mainnet WETH–USDC same-pair swaps across exactly four Uniswap L1 pools, reconstruct realized routing allocations at the transaction level, label major routers, and reproduce descriptive execution-concentration statistics such as activation rate, entropy, and HHI. This experiment is a standalone data-engineering and descriptive-replication stage that does not require solving optimal routing benchmarks.

Execution-Time Optimal Routing Benchmarks: SCO, FVO, and Gas-Aware G-FVO for Realized WETH–USDC Swaps

Reproduce the paper’s core execution-quality benchmarks by reconstructing exact execution-time pool states and comparing realized transaction routes to three optimal-routing benchmarks over the same-pair four-pool universe: Support-Constrained Optimum (SCO), Full-Venue Optimum (FVO), and Gas-Aware Full-Venue Optimum (G-FVO). This experiment is fully self-contained and includes pool-state reconstruction, exact AMM output modeling, benchmark optimization, and route-level shortfall measurement.

State-Staleness Routing Experiment: Effect of Planning on Bottom-of-Block States N Blocks Before Execution

Measure the value of timely information in same-pair AMM routing by comparing optimal routes computed on execution-time state versus stale pool states from N blocks earlier, where N ranges from 0 to 10. This experiment independently reproduces the paper’s staleness design, including execution-state optima, stale-state optima, and implementable one-block-stale planner evaluations.

Trade-Size Heterogeneity and Heavy-Tailed Distribution of Routing Inefficiency

Analyze how routing inefficiency varies across trade-size bins and characterize the distributional shape of shortfalls, including means, medians, quartiles, and heavy right tails. This experiment is self-contained and focuses on heterogeneity and descriptive distributional analysis using realized routes and optimal benchmarks.

Sandwich-Attack Subsample Analysis of Routing Shortfalls

Identify likely sandwiched transactions using the paper’s within-block bracketing heuristic and compare routing shortfalls for sandwiched versus non-sandwiched subsamples. This experiment is fully independent and combines a custom MEV-tagging procedure with benchmark-based execution-quality analysis.

Original paperRun QCA on your paper