Skip to content
Preprint

Quantifying Sub-Optimality in Routing for Automated Market Makers

Jul 2026 · 3 citations · ⚡ 1 influential · 8 references
Economics

TL;DR

This work provides a large-scale empirical audit of DEX routing using 2.98 million WETH-USDC swaps on Ethereum and demonstrates that sandwiching attacks drive a significant fraction of routing sub-optimality.

Abstract

We provide a large-scale empirical audit of DEX routing using 2.98 million WETH-USDC swaps on Ethereum. Comparing realized routes with optimized benchmarks, we measure an average shortfall of 2.02 bps per trade or \$24 million. To attribute losses, we introduce three reproducible optimal benchmarks: a Support-Constrained Optimum (SCO) that evaluates split quality conditional on the pools actually used; a Full-Venue Optimum (FVO) that considers all available pools to quantify the value of broader pool access; and a Gas-Aware FVO (G-FVO) that augments FVO with gas costs to capture the trade-off between additional pool usage and gas expenditure. Computing these benchmarks at scale is enabled by a bisection-based algorithm for optimal routing across multiple pools for the same token pair. Two regularities emerge. First, information timeliness is crucial: moving from execution-time state to one-block lagged state optimization significantly raises mean shortfall and additional delays further degrade performance, albeit with diminishing increments; evaluated on the same stale snapshots, realized routes lie closer to optimal, indicating timing-mismatch as a key component. Second, inefficiency is heterogeneous and heavy-tailed: small trades suffer higher percentage losses, while a few extreme outliers dominate the aggregate dollar shortfalls. Finally, we demonstrate that sandwiching attacks drive a significant fraction of routing sub-optimality. Our benchmark protocol and algorithm offer a rigorous, reproducible basis for evaluating and improving information-timely, gas-aware routing.

View source

Similar papers

Preprint Aug 2026

CoBa: Cost-Effective Test-Time Scaling via Compute-Balanced Routing

This paper formulates test-time reasoning as a compute-allocation problem in which a system must decide whether the next unit of compute should be spent on generation, verification, or stopping, and introduces CoBa, a compute-balanced routing policy that first obtains a small set of candidates, applies cheap verificati...

Yan Zhou, Yue Ouyang, Kaiyang Zheng et al. · 0 citations
#machine learning Preprint Sep 2026

Differentiable Electricity-Market Clearing for Gradient-Based Planning

Differentiable market clearing turns market-aware planning into a problem gradients can search: each forward pass solves the market, and reverse-mode automatic differentiation propagates the planning cost back through the cleared prices to the plan.

Luca Mungo, Maarten P. Scholl, A. Quera-Bofarull · 0 citations
Sep 2026

Operating distribution center networks at scale: Efficient formulations and policies

How should retailers and sellers distribute inventory across a large network of (potentially hundreds of) distribution centers? Motivated by the emerging challenges of inventory allocation facing volatile demand, we develop distributionally robust network inventory management policies with cross-fulfillment using a sce...

Chen-Xi Li, Ai-Qi Zhang, Sheng Liu et al. · 0 citations
Preprint Sep 2026

Fast Relax-and-Round Unit Commitment with Topological Constraints

Recent developments in the US knowledge economy have created a significant growth in datacenter loads, with two major consequences for power generation. First, to compensate for growth in load, datacenters are encouraged to bring their own generating units. Second, in search of the remaining pools of dispatchable gener...

Evan J. R. Brody, C. Foltz, E. Tsybina et al. · 0 citations
Open access Aug 2026

A Tolerance-Aware Pricing Certificate for Stabilized Dantzig–Wolfe Branch-and-Price in Unit Commitment

Stabilized proposal pricing may reduce exact subproblem work, but it cannot by itself certify branch-and-price node termination. A conditional, tolerance-adjusted node-pricing bound is developed for deterministic unit commitment. At the unstabilized restricted-master dual, CSDW-S applies a Phase-II cascade comprising a...

Zi-Han Zhang, Jia-Ni Li, Hao-Yu Yang et al. · 0 citations
Preprint Sep 2026

Assortment Control Unlocks the Value of Dynamic Pricing in Mixed Last-Mile Delivery

The growth of e-commerce has intensified the need for last-mile delivery systems that can jointly manage customer choice and operational efficiency. We study the Dynamic Offering and Pricing of Mixed Delivery Options problem, in which a logistics service provider dynamically selects and prices attended home-delivery ti...

Ze Zhou, B. Kulcsár · 1 citation

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.