# FirstSwap: Pre-Consensus Trade Approvals for Decentralized Market Design

DevFeed: [FirstSwap: Pre-Consensus Trade Approvals for Decentralized Market Design](<https://devfeed.tech/articles/firstswap-pre-consensus-trade-approvals-for-decentralized-market-design-126705.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10254>)

Author: William Diamond, Fatima Elsheimy, Dahlia Malkhi, Geoff Ramseyer, Srivatsan Sridhar

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Cryptocurrency](<https://devfeed.tech/topics/cryptocurrency.md>), [consensus algorithm](<https://devfeed.tech/topics/consensus-algorithm.md>)

Tags: [auction](<https://devfeed.tech/tags/auction.md>), [batch](<https://devfeed.tech/tags/batch.md>), [block](<https://devfeed.tech/tags/block.md>), [consensus](<https://devfeed.tech/tags/consensus.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-gt](<https://devfeed.tech/tags/cs-gt.md>), [decentralized](<https://devfeed.tech/tags/decentralized.md>), [delay](<https://devfeed.tech/tags/delay.md>), [dex](<https://devfeed.tech/tags/dex.md>), [execution](<https://devfeed.tech/tags/execution.md>), [fast](<https://devfeed.tech/tags/fast.md>), [maker](<https://devfeed.tech/tags/maker.md>), [messages](<https://devfeed.tech/tags/messages.md>), [model](<https://devfeed.tech/tags/model.md>), [ordering](<https://devfeed.tech/tags/ordering.md>), [orders](<https://devfeed.tech/tags/orders.md>), [prices](<https://devfeed.tech/tags/prices.md>), [pricing](<https://devfeed.tech/tags/pricing.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [quorum](<https://devfeed.tech/tags/quorum.md>), [social](<https://devfeed.tech/tags/social.md>), [trade](<https://devfeed.tech/tags/trade.md>)

## AI overview

FirstSwap gives traders pre-consensus approval that guarantees execution within their submitted price limit, with final ordering based on limit prices rather than block-producer choice. Its economic model finds that under gradual CEX price changes, it rewards earlier traders, discourages delay, and produces higher social welfare and liquidity-provider gains than a batch auction; under abrupt price jumps, it yields higher welfare and smaller AMM losses than fair ordering. For fast approvals, validators reserve only a fraction of available liquidity at each price, and traders obtain approval in one message round with a quorum. The authors show that quorum-certified trades remain jointly admissible and within their limits even with Byzantine validators that may approve arbitrarily. The protocol also supports pre-approving matching buy and sell orders.

## Source excerpt

arXiv:2611.10254v1 Announce Type: new Abstract: Decentralized exchanges typically give traders no execution guarantee until a block is finalized. In the meantime, external prices move, traders strategically delay submission, and block producers can influence inclusion and ordering. We introduce FirstSwap, a DEX built on a constant-function market maker pricing curve that gives traders an early pre-approval before consensus, guaranteeing inclusion and execution within their submitted price limit, with final ordering determined by limit prices rather than by a block producer. We demonstrate the benefits of trade pre-approvals in an economic model combining auction theory with CEX-DEX arbitrage. When the CEX price changes gradually, FirstSwap rewards earlier traders with better prices, discouraging strategic delay and yielding higher social welfare and gains to AMM liquidity providers than a batch auction. When the CEX price jumps abruptly, FirstSwap yields higher welfare and smaller AMM losses than fair ordering. The central challenge is delivering fast trade pre-approvals without consensus. We introduce a decentralized, scaled admissibility protocol under which each validator reserves only a fraction of the available liquidity at every price. A trader obtains approval in a single round of messages with a quorum of validators. Somewhat surprisingly, despite Byzantine validators who may approve trades arbitrarily, we show that all quorum-certified trades are jointly admissible and execute within their limits. Our protocol extends naturally to a setting where buy and sell orders can be pre-approved against each other before a block is finalized.