Crescent Docs
  • Introduction
    • What is Crescent?
    • Crescent DEX
      • Market
      • Pool (Liquidity Pool)
      • Position
      • Order-book and Tick system
      • Hybrid DEX
      • Batch Matching
      • Sequential Matching
      • Multi-hop Swap(SlipLess Swap)
      • Ranged Liquidity
        • Comparison with Basic position
        • Liquidity Amplification Factor
        • Possibility of Change to a Single-Coin position
        • Multiple Positions in the Pool
      • Fee
      • Farming
        • Current Farming vs Legacy Farming
      • Market Maker Incentives
        • MarketMaker Apply / Incentive Claim
        • MarketMaker Scoring
    • Liquid Staking
      • Staking vs. Liquid Staking
      • Overview of Staking Rewards
      • Calculations for Staking Rewards
      • Liquid Staking Validator
    • Snowball (Liquid AMM)
      • Mint & Burn sb-Token
      • Reward Auction
        • How to Participate
    • Gas and Fees
    • Liquid Governance
    • Partnership
    • Crescent Derivatives
    • Crescent DEX (legacy)
      • Coin Pair
      • Liquidity Pool
      • Legacy Farming Rewards (LP Incentives)
      • New Farming Rewards (LP Incentives)
      • Orderbook and Tick System
      • Hybrid DEX
      • Batch Execution
      • Ranged Pools
      • Market Maker Incentives
        • MarketMaker Apply / Incentive Claim
        • MarketMaker Scoring
      • Synergy with Crescent Boost
  • Developer Guide
    • CLI and API
      • AMM module
        • CLI Reference
        • API Reference
      • Exchange module
        • CLI Reference
        • API Reference
      • LiquidStaking module
        • CLI Reference
        • API Reference
      • LiquidAmm module
        • CLI Reference
        • API Reference
  • Technical Guide
    • Market Maker
    • Farming Planner
  • Other Information
    • Network Configurations
    • Crescent Design Assets
Powered by GitBook
On this page
  1. Introduction
  2. Crescent DEX

Hybrid DEX

PreviousOrder-book and Tick systemNextBatch Matching

Last updated 1 year ago

There are many ways to define a hybrid DEX, but in the context of Crescent, hybrid refers to both AMM and traditional order-book trading operating simultaneously in the same market.

In a typical DEX, a calculation logic such as CPM(constant product model) determines the amount of tokens that can be received in a swap or the amount of tokens that must be put in to obtain a certain amount of outputs(exact-in, exact-out), and the swap price, which is determined as a ratio of the input and output quantities, appears to increase or decrease continuously. The fact that the swap price is continuous means that as the user's order quantity changes, the rate of exchange actually exchanged changes slightly. This results in the inability to exchange tokens at an identical swap price for two different orders, even if the difference between their input quantities is minuscule.

However, the continuous nature of swap prices is incompatible with order-book in traditional finance. In the order book, the execution price does not change no matter how many tokens a trader buys, as long as the liquidity already at the best price allows. Then, when the liquidity at that price is exhausted, the next price will start to fill, and the order will never fill at a price between those prices. This means that the execution price is “discrete”. As mentioned earlier, there are ticks in the order-book, and as a hybrid DEX, Crescent is designing the basic UI and UX in a way that is not off-putting to traditional order-book users, so we want to provide an order-book with an explicit tick system. Therefore, when the amount that a pool can provide is calculated through CPM and applied to the order-book, it is necessary to calibrate the liquidity to the discrete tick system. Instead of making a calibration, it might be better to modify the CPM logic itself or develop a different way of providing pool liquidity. However, given the computational benefits and additional convenience we gain by sticking with CPM, we felt that tweaking the original was a much better direction than going the hard way.

Hybrid DEX