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 competition currency continues to be sucked, and the market value of Bitcoin accounts for nearly 70%.

Bitcoin has been on the rise since the first half of this year and has expanded further in the past few weeks. Despit...

Blockchain

Telegram writes to investors: the delay in the hearing is a "positive step"

In a letter to investors, Telegram encouraged investors to consider the US Securities and Exchange Commission (SEC)&a...

Blockchain

Opinion: Bitcoin worth millions of dollars is not a dream?

This article has a total of 4344 words and is expected to read 12 minutes. The original text was written on January 2...

Market

Bitcoin’s Million-Dollar Price Tag: The Trigger Moment

Fashionista, get ready for a very inflationary period because according to Arthur Hayes' latest Bitcoin forecast, the...

Blockchain

Featured | What happens if you inherit 55,000 bitcoins?

Satoshi Satoshi's Notes: Feature 5 latest high-quality cryptocurrency articles each time Today's content in...

Blockchain

Winter all night! Why did the crash occur? How is the market interpreted?

At around 2:00 am Beijing time today, Bitcoin suddenly plunged, and the price plunged nearly 2,000 US dollars in just...