Summary
Dual-Flow Batch Auction (DFBA) is a market design that simultaneously processes both continuous flow (time-sensitive orders) and batch flow (aggregate auctions) within a unified mechanism, aiming to balance fairness, efficiency, and latency in decentralized exchanges.
Why This Is Important
Traditional DEX models split between continuous limit order books (favoring low-latency actors) and batch auctions (favoring fairness but losing real-time responsiveness). Jump’s DFBA introduces a hybrid system that integrates both flows, offering traders a choice between immediacy and fairness within the same market. This could reduce MEV-driven inefficiencies, create more predictable execution for institutions, and establish a new primitive.
Overview
The DFBA design splits incoming orders into two simultaneous streams: continuous flow and batch auctions. Continuous Flow handles orders that demand immediacy and are matched against available liquidity in real time. Batch Flow includes orders willing to wait to participate in periodic auctions where trades clear at a uniform price, mitigating adverse selection and front-running. The goal of these market structures is to reduce the spread and provide deeper liquidity. Several solutions have been identified for assessment. Automated Market Makers (AMMs) unlocked 24/7 trading and permissionless, virtually limitless scaling of new asset listings, yet paid for that breakthrough with high slippage at size, impermanent loss for LPs, and a proliferation of sandwich attacks and other aggressive MEV exploits. Batch Auctions in protocols like CoW Swap tried to tackle MEV by settling trades in discrete auctions. This reduces sandwich attacks but comes with trade-offs: reliance on external solvers, fragmented liquidity across rounds, and a single clearing price that hides the real supply-demand dynamics. The slower speed and clunky user experience made it unattractive for active traders. On-chain CLOB DEXs, such as dYdX and Serum, brought better price discovery, tighter spreads, and pro-market makers on-chain. However, continuous matching and time prioritization sparked a latency arms race and opened the door to aggressive MEV, such as frontrunning. Request For Quote (RFQ) protocols like 0X(Matcha) and Hashflow use competing off-chain quotes from designated market makers to help mitigate MEV and reduce order-flow toxicity. Price discovery is pushed off-chain, and market liquidity is opaque. Vault / Hybrid Model exchanges boost speed and liquidity by pushing features off-chain or onto app-chains with validators. But reliance on centralized sequencers and continuous matching keeps them exposed to order-flow toxicity and MEV. Lastly, there are Prop-AMM / Dark-AMMs, which are Private liquidity pools (Darklake) with aggregator integration, closed-source contracts, and oracle pricing aimed to cut adverse flow and tighten spreads. But permissioned access fragments liquidity, and closed pricing curves obscure true market depth.
Team
The author of the article is Jeff Bezaire, who is a quantitative researcher at Jump Trading.
Components
| Natural flow | Hedgers, investors, speculators, etc. Basically, anyone who has an external reason to come to the market and trade. |
|---|---|
| Key Difference | (i) CLOB: Maker/taker roles are relative and time-based. (ii) Roles are fixed by intent; market makers provide liquidity, natural-flow traders take it. |
| Auction Process | (i) CLOB: A pair of continuous auctions (buy vs. sell). Each new taker order triggers an auction against existing makers. (ii) DFBA: Runs two simultaneous auctions, taker buys vs. maker sells, and taker sells vs. maker buys. |
| Maker Orders | (i) In CLOBs: Orders resting in the book to provide liquidity. Typically preferred by market makers (often flagged as post-only). (ii)In DFBAs: Explicitly liquidity-providing orders from market makers. |
| Taker Orders | (i) In CLOBs: Defined by arrival time, whoever comes last is the taker. Takers trade against resting maker orders; if unfilled, they become makers. Traders seeking immediacy often send IOC (Immediate or Cancel) taker orders. (ii) In DFBAs: Defined by intent, not timing. Natural-flow traders submit taker orders when seeking prompt execution and pay for liquidity. |
| Mechanics | (i) Collect buy and sell orders with limit prices for a fixed period of time. Unfilled orders from previous auctions are included. (ii) Separate orders into two groups – maker orders and taker orders (multiple design choices exist for maker/taker assignment). (iii) Conduct two separate and simultaneous independent auctions: (iii. a) “bid auction” between maker-buy orders and taker-sell orders (iii. b) “ask auction” between maker-sell orders and taker-buy orders. (iv) Within each auction, find clearing price that maximizes matched volume in the auction leaving no unmatched orders at better prices. (v) All orders that match in one auction fill at the same price – so there is a bid-auction fill price and fill quantity and a separate ask-auction fill price and fill quantity. (vi) If there is more order quantity on one side of the auction than the other, the orders on that side are allocated fills based on order price priority, and then pro-rata based on order-size if at same order price. (vii) Repeat. |
Opinions & Open Questions
- Why is 100 ms the set auction time?
- Does this architecture pass off MEV cost to the Makers?
- What are other forms of order flow toxicity that this architecture attempts to mitigate?
- Could DFBA become a standard primitive for Solana DEXs, or will it remain niche?
Glossary
| Market Maker: Liquidity providers act as intermediaries between the natural flow buyers and natural flow sellers. They post buy orders at a slightly lower price than they post sell orders (the so-called bid-ask spread) and are looking to earn a portion of that spread by buying from natural flow sellers, holding the position for some time, and then selling to natural flow buyers. | Scalpers: Their trading involves identifying orders resting in the market that are mispriced (according to their valuation model) and aggressively trading against them. Scalpers are a major source of “toxic” or “adverse” flow to market makers, as they only trade when market makers orders are mispriced. |
|---|
References
- Dual Flow Batch Auction Article - https://jumpcrypto.com/writing/dual-flow-batch-auction/
- The High-Frequency Trading Arms Race: Frequent Batch Auctions as a Market Design Response –https://academic.oup.com/qje/article/130/4/1547/1916146?