Please describe your proposed solution.
The UTxO model holds promising prospects for on-chain trading but falls short of the ideal. The challenge lies in fragmented liquidity trapped within various contracts and governed by closed execution systems, often referred to as 'batchers.' Additionally, due to the closed nature of these systems, end users are deprived of information regarding the execution of their orders, creating a significant potential for abuse through mechanisms such as MEV, frontrunning, and other types of attacks. To address these issues, we present a framework for universal liquidity aggregation and transparent execution, which can be adopted and utilized by any dApp team.
Universal Liquidity Composition: Temporal Liquidity Book
We propose a solution for universal off-chain liquidity aggregation based on a simple idea: all liquidity available on the market (AMM, market\limit orders, programmable orders etc.) can be projected into a 3-dimensional space: Price, Volume, and Time. Thus matchmaking logic for all types of liquidity can be described with a universal set of rules.
The implementation will be done in Rust programming language and will be optimized for efficient memory utilization to support the facilitation of large sets of liquidity chunks.
MEV resistance: Order Steering and Decentralized Execution Assessment
Universal composition of liquidity won’t be possible without MEV resistance, because MEV can siphon all the gains of liquidity aggregation. Our anti-MEV solution is based on two pillars:
- Orders can be steered to a subset of off-chain executors (aka “batchers”) instead of just “send to all”
- The quality of off-chain execution can be assessed using an evolving set of metrics right on the client (in your favorite DEX’s app). The result of the assessment can be used to automatically assign orders to those executors providing the best execution quality (price and speed).
Off-chain part of order steering will be implemented in Rust as well. Execution Assessment will be implemented as a combination of off-chain service to aggregate relevant on-chain data and provide an easy interface to query it and a client SDK in Typescript to perform assessment itself on the client side.
Explore more in the Spectrum Bloom: A self-developing, sustainable, eUTxO-native framework for decentralized finance white paper.