by @Alphaist & tomoki adachi from Titania research

Introduction:

In our previous postwe proposed building Frequent Batch Auction on SUAVE.
The detailed implementation of the PoC for FBA on SUAVE can also be found in this post. We demonstrated the potential for this to contribute to solving two current problems faced by DEXs: Sandwich Attacks and Loss versus Rebalancing. Howeversimply building an FBA on SUAVE is not significantly different from building an FBA on a Privacy L2. Of courseSUAVE is a decentralized platform that enables more diverse block building by implementing auctions and other features. (It is important to note that it is neither a Layer 1 blockchain nor a Layer 2 solution.)

One of the notable aspects of SUAVE is its potential to serve as a mempool and Block Builder for all blockchains. This possibility suggests that it may contribute to solving issues that have not been a concern for single-chain DEXs until now. These issues are market fragmentationspecifically order flow fragmentation and liquidity fragmentation.

Taking Uniswap as an examplethere are numerous Uniswap pools on Ethereum alone. There’s Uniswap V2which uses CFMMand Uniswap V3which uses CLAMM. Additionallyfor major currency pairs like WETH-USDCthere are four different Fee Tiers. This is a clear example of liquidity fragmentation. While fee tiers are useful in providing liquidity providers with a variety of spread optionsthe upcoming Uniswap V4 raises concerns about further liquidity fragmentation due to the introduction of Hooks. Order flow fragmentation is not currently a significant issue on a single chainbut considering the future emergence of more general and app-specific Layer 2sorder flow fragmentation is likely to become a problem soon.

The question of whether market fragmentation undermines market quality has been a long-standing debate in the field of finance. Market fragmentation is not necessarily limited to the negative impacts mentioned above. Fragmentation can promote competition between exchangesleading to innovationimproved servicesand reduced trading costs for investors. Additionallymarket fragmentation can disperse risk by reducing dependence on a single exchangeenhancing the market’s overall resilience to disruption. In factreports by O’Hara(2011) and others suggest that market fragmentation does not necessarily harm market quality. Howeverthe impact of the National Best Bid and Offer (NBBO) and Regulation NMS’s Trade-Through Rule (Rule 611) in the U.S. market should not be underestimated. They have created a single virtual market with many points of participation. This has allowed for the positive benefits of competition and specialization without the negative consequences of loss of integration. While a detailed examination of the pros and cons of market fragmentation is beyond the scope of this articlewe plan to investigate this issue in the future.

Overview:

We propose a DEX that aggregates swap order flows from all opt-in chains using SUAVE and Based Sequencing or Shared Sequencingand executes transactions through a Frequent Batch Auction. This is expected to reduce the problem of Market Fragmentation and the resulting Arbitragemainly Cross-chain MEV.

Implementation Example:

Actors:

Off-chain

  • Trader: The actor who wants to swap and sends their order (intents) to SUAVE.

  • Operator: The actor who periodically executes the FBA.

  • Executor: The actor with an L2 Full Node who simulates the execution of transactions.

  • Shared Sequencer: A network that sequences transactions from multiple Rollups.

On-chain

  • Auction Contract: A contract that aggregates Trader’s ordersexecutes FBA through the Operatorand optimally reorders orders according to specific rules.

Flow :

  1. Trader sends an Order to the Auction Contract.

  2. The Order is stored in the Confidential Data Store (CDS).

  3. After a certain periodthe Operator requests the end of the auction by executing the Auction Contract.

  4. The Auction Contract retrieves the Order information from the CDS and reorders the Orders.

  5. It creates a transaction to execute the Orders and sends the transactions that should be executed Atomically as an Atomic bundle to the Shared Sequencer.

  6. The Shared Sequencer accesses an external Executor to simulate the transactions to be executed atomically.

  7. If the simulation is successfulit generates blocks for each Rollup and sends them to the DA.

Options:

The above example demonstrates the construction of a Cross-chain Batch DEX using SUAVE and Shared Sequencingbut there are several options. Firstwe will examine the pros and cons of whether to use SUAVE for Block Building.

Block Building

- Shared Sequencer

Pros :

It can guarantee the atomic inclusion of blocks from multiple Rollupsand Rollups connected to the Shared Sequencer can communicate seamlessly.

Cons :

Howeverthe Shared Sequencer only guarantees atomic inclusion of blocks and does not guarantee atomic execution. To guarantee atomic executionit is necessary to run a full node of the Rollupwhich increases the requirements for the Sequencer.

- SUAVE

Pros :

In addition to having a Multichain mempool aspect spanning multiple chainsit can also perform block construction. In the case of FBAhandling Intents and ordering them is one of the requirementswhich can be realized on-chain.

Cons :

On the other handthere are two problems when delegating block construction to SUAVE. One is how to enforce commitments against the possibility of SUAVE generating malicious blocks. The other is that whether SUAVE’s blocks are accepted by the Sequencer depends on the Sequencer.

Sequencing

- Based Sequencing

Pros :

By having the Proposer handle Sequencingit can inherit Ethereum’s Liveness. It also does not depend on external Shared Sequencers.

Cons :

Howeverthere are issues with guaranteeing atomic execution. In the case of an external Shared Sequencerexternal builders and the Shared Sequencer can execute and validate full nodes. Howevertrying to achieve this with Based Sequencing would result in losing the advantage of Based Sequencingwhich is Ethereum’s Liveness.

- Shared Sequencing

Pros :

Since it has an external networkcensorship resistancetrustand speed in providing Preconf depend on the network’s consensus.

Cons :

With Based SequencingProposers need to opt-in to participate as Preconfersand not all Proposers participate. This may cause latencyas Preconf execution cannot be performed until a specific slot. AlsoBased Sequencing relies on a single Proposerwhile an external network relies on economic security.

Conclusion:

In this articlewe have proposed a Cross-chain Batch DEX that leverages SUAVE and Shared Sequencing or Based Sequencing to aggregate swap order flows from multiple opt-in chains. The primary goal is to mitigate the issues arising from market fragmentationsuch as arbitrage and cross-chain MEV.We have outlined an implementation example involving various actorsboth off-chain and on-chainand described the flow of the process. Additionallywe have explored the pros and cons of using SUAVE for block building and the choice between Shared Sequencing and Based Sequencing. Considering these pros and consit seems realistic to use SUAVE for aggregating Intents and Shared Sequencers for Block Building and Sequencing for the implementation of FBA with Multiple Rollups.

Reference

7 Likes

We have been developing a LVR capturing cross-chain AMM based on batch auctions in stealth mode for a long time. PoC is ready. We would be happy to deploy on Flashbots.

1 Like

Are there any improvements to the current plan?