Decoding Decentralized Order Book The Best Combination of Pricing Quality and Fund Security

Decoding Decentralized Order Book Optimal Combination of Pricing, Quality, and Fund Security

Written by: ELLA, KEONE

Translated by: Deep Tide TechFlow

Since the peak of the DeFi Summer, crypto traders have been trading on DEXs like Uniswap and CEXs like Binance. However, DEXs are primarily implemented in the form of AMMs, while CEXs are primarily implemented in the form of limit order books (LOBs). Traders often find that AMMs offer simple pricing and avoid entrusting assets to centralized participants, while CEX LOBs provide better pricing due to more accurate liquidity from active market makers.

Although there are other trade-offs between the two types of exchanges, such as liquidity mining on AMMs and richer information trading on LOBs, these trade-offs can play a role in deciding which platform to trade on, but pricing is the most important factor. Therefore, the natural question is, why not decentralize centralized exchanges? Decentralized LOBs would be a game-changing factor that could achieve the advantages of non-custodial dapps and provide better pricing offered by a complete order book.

Let’s dive into the details.

Automated Market Makers: Native Crypto Liquidity

AMMs are on-chain programs (smart contracts) that allow users to swap assets between pairs. They achieve this by maintaining paired liquidity pools that serve as the exchange facility. The price of the assets is typically determined by the well-known first-generation AMM curve formula x*y=k, pioneered by DEXs like Uniswap v1/v2 (constant product market makers). There are other types of AMMs, such as constant sum market makers, constant mean market makers, and (more generally) constant function market makers, but the concept of maintaining an invariant formula to fairly determine asset conversion rates remains the same.

Here is a simplified example of how AMM pricing works in UniV2 (assuming no fees):

When conducting AMM trades, users typically provide liquidity within a specified price range, which can be relatively narrow or span the entire range from 0 to infinity. Regardless of the approach, there is a problem of inefficient capital utilization:

  • For narrow ranges, more capital can be utilized when the price is within the range, but the price is only within the range in few cases;
  • For wide ranges, capital is spread out, and most of the capital cannot be utilized at any given time.

Due to the constantly changing prices, capital on AMMs can only be fully utilized when liquidity providers use narrow ranges and update them frequently. However, frequent updates require a significant amount of gas fees on the Ethereum mainnet, so providers rarely update their ranges.

The result of this inefficient capital efficiency is a larger slippage for end users. The larger the transaction relative to the total liquidity, the greater the slippage, which is also affected by the depth of the liquidity pool. This can be seen intuitively from the diagram below, which is a typical x*y=k curve: the larger the transaction size, the further we move horizontally on the curve, resulting in a flatter diagonal line (worse price).

For larger transactions, more experienced traders often choose CEX.

(According to CoinMarketCap, as of August 3, 2023, for spot trading, Binance’s trading volume is 18.5 times that of UniV3 (on Ethereum).

Lessons from centralized exchanges

Centralized exchanges are almost always implemented in the form of limit order books. A limit order book is a list of buy and sell orders arranged in price and time order. These orders are executed based on price and time priority, meaning that the lowest ask price and the highest bid price are matched first, which incentivizes market makers to provide the best prices. This competition results in lower slippage for end users.

An example of an order book for ETH/USDC spot trading on Deribit.

The spread on the order book can be very small because market makers constantly adjust their orders based on supply, demand, and new information. This means that market makers send a large number of new orders to the exchange throughout the day.

Binance and Coinbase are still the two largest cryptocurrency exchanges by spot trading volume, while Deribit is the preferred choice for most institutional cryptocurrency options trading.

On-chain limit order books

For frequent traders, striking a balance between execution quality and the risk of entrusting funds to a centralized entity can be tricky.

Decentralized limit order books have the potential to offer the best of both worlds between AMMs and centralized exchanges: excellent execution quality while retaining user assets.

Currently, the main challenge in implementing on-chain limit order books is the lack of an environment with cheap gas and abundant trading. Limit order books require cheap and frequent trading because market makers often adjust their quotes. The new generation of high-throughput (>2k) blockchains is gradually making fully on-chain limit order books more feasible. This has led to some notable examples of on-chain limit order books, including Econia (Aptos), DeepBook (Sui), and OpenBook/Serum (Solana).

The second obstacle to achieving full-capacity LOB is the large-scale operation of LOB on EVM. LOB compatible with EVM can not only provide decentralized transactions with low slippage, but also offer composability opportunities for a wider range of EVM applications.

Ultimately, if DeFi is to surpass CeFi, it needs to provide a comparable or better user experience. For traders, one important aspect of the user experience is execution quality. On-chain LOB is a crucial part in narrowing the execution gap between DeFi and CeFi.

We will continue to update Blocking; if you have any questions or suggestions, please contact us!

Share:

Was this article helpful?

93 out of 132 found this helpful

Discover more

Blockchain

The collective behavior of governance on the chain: how is power distributed? Why do we need chain governance?

Proponents of chain governance praise the effective decision-making and rapid execution of this model. Opponents of t...

Blockchain

Bitcoin weekly report | 3.12 impact further weakened, core data on the chain dropped by more than 20%

Editor's Note: This article has been deleted without altering the author's original intention. Judging from...

Blockchain

Thinking about how to invest in the Internet, blockchain and digital currency in the next decade from Web 3.0

Preface: Ten years have elapsed since the birth of Bitcoin, and the concept of blockchain and digital currency has be...

Blockchain

Li Bin, CEO of Wuzhen·International Cultural Chain: Opportunities and Reflections on Chinese Cultural Digital Asset Chain

On November 8th, the “2019 World Blockchain Conference·Wuzhen” hosted by Babbitt was officially op...

Blockchain

Compared with Bitcoin, will Ethereum be more risky in the past six months?

Original: Yahoo! Finance Original author: Omkar Godbole Translator: Moni Source: Odaily Planet Daily LianGuai Daily |...

Market

Why do some people say that Bitcoin is worthless but has a price?

With the birth of Bitcoin, the controversy about it has never been interrupted. Everyone has their own views on Bitco...