WHAT Order Book Design

Trade on WHAT

WHAT Exchange Orderbook Design

WHAT Exchange has an omnichain decentralized orderbook protocol that aims to provide a high-performance, low-latency trading infrastructure to our users.

Orderbook Design

The WHAT Exchange central limit order book (CLOB) uses a hybrid orderbook model that combines the best features of centralized and decentralized exchanges that allows WHAT to offer centralized exchange performance with low latency and concentrated liquidity while providing full transparency decentralized exchanges and full self-custody of funds.

This means that orders are settled and stored on the blockchain, which provides a of benefits, including:

  • Transparency: All orders are visible to everyone, which it difficult for market manipulation to occur.
  • Security: Orders are and stored on the blockchain, which makes them very secure because of immutability of data.
  • Efficiency: Orders can be executed quickly and efficiently, thanks to the use of a high-performance matching engine.
  • Self-Custody: Users have full custody of their funds which eliminates the trust assumption in the protocol and guarantees solvency.

Omnichain Approach

WHAT has enabled omnichain orderbook by splitting the stack into three main components:

  1. Asset Layer (Vaults) - resides on each chain WHAT Exchange supports- Users interact with this layer when registering/depositing/withdrawing and where the funds reside.

  2. Settlement Layer (Partnerships with Orderly Network and LayerZero) - resides on a single chain

  • Users do not interact with this directly and is used as a transaction ledger for storing transaction/user.
  1. Engine Layer (Orderbook) - Orderbook and order-related services
  • Users interact with this when managing. This where trade execution happens and includes matching engine itself, risk engine, and other services.

Orders from different chains come into the same orderbook, making it agnostic unifying liquidity unlike multichain DEXes. After the orders are matched, they are uploaded and settled on WHAT L2 chain built using OP Stack, settling to Ethereum periodically.

With all orders being settled on-chain, WHAT settlement layer sends/receives deposit/withdrawal instructions from the engine layer and updates users' on-chain balance. The settlement layer then relays these instructions to/from the Asset Vaults — all of this communication is powered by LayerZero.

MEV Protection

WHAT Exchange also includes a number of features to protect users from MEV (miner extractable value). MEV is a type of arbitrage that can be used to profit from the delay between when a transaction is submitted to the blockchain and when it is confirmed. WHAT Exchange's MEV protection features include:

  • Fast Matching: The sequencer matches orders very quickly, which makes it difficult for MEV extractors to front-run trades.
  • Batching: Transactions are batched together before they are submitted to the blockchain, which further reduces the risk of MEV.
  • On-chain Settlement: All trades are settled on the blockchain, which ensures that traders are not vulnerable to MEV attacks.