Why Safety Thresholds Matter
A Central Limit Order Book (CLOB) works best when there is enough trading volume and enough resting liquidity (bids and asks) so that:- Prices stay close to the oracle (e.g. within 1–2%) and are hard to manipulate.
- Spreads stay tight and slippage stays low, so trades execute at fair prices.
- Market makers and LPs can earn enough to keep providing liquidity instead of pulling out.
Why This Matters for Market Makers and LPs
In a pure CLOB, liquidity comes from market makers (MMs) who place resting limit orders (bids and asks), not from pooled AMM-style LPs. Safety thresholds protect MMs and LPs in several ways:-
Sustainable economics
Volume thresholds (e.g. > $100K–500K/day minimum) ensure that fee income can cover MM costs (hedging, bridging, opportunity cost). If volume is too low, fees don’t cover costs, MMs leave, and the book dries up. -
Clear commitment rules
Minimum depth per side (e.g. 500K each) spread risk and keep the market competitive. -
Protection from extreme moves
Circuit breakers (e.g. pause when depth drops below 50% of minimum or volume spikes 5×) limit flash-crash and liquidity-drain scenarios, so MMs aren’t left holding one-sided risk. -
Incentives aligned with safety
Fee sharing (e.g. 50% to MMs) and subsidies when volume is below target encourage MMs to stay and maintain depth instead of withdrawing when conditions are temporarily weak.
Why This Matters for Traders
Traders benefit from safety thresholds because they directly support better execution and fairer prices:-
Tighter spreads
When minimum depth per side is enforced (e.g. $1M+ per side within ±1% of oracle), the bid-ask spread stays bounded (e.g. < 0.5%). That means you pay less to cross the spread on every trade. -
Predictable slippage
Enough resting liquidity means your order size is small relative to the book. So a 500K+ daily volume and sufficient depth gets slippage kept in check (e.g. < 1%), instead of moving the price sharply. -
Prices you can trust
The deviation guard (e.g. CLOB mid within 1% of oracle) and oracle-referenced depth reduce the risk of the on-book price drifting far from the “real” price. You get execution closer to the reference market, especially important for cross-chain pairs (wETH, wBTC, etc.). -
Fewer extreme events
Circuit breakers (pause when depth or volume hit safety limits) and fallback to Hyper-CLAMM when thresholds aren’t met mean you’re less likely to trade in a suddenly illiquid or manipulable environment.
1. Suitable Trading Volumes for Pure CLOB
Pure CLOB works best in medium-to-high volume markets. In low-volume or meme markets, spreads can widen (e.g. > 2%) and slippage can spike—so we only run pure CLOB when volume is above certain levels.- Minimum viable: > $100K–500K/day per market (e.g. ETH/USDC). Below this, MM fee income tends to fall short of costs, MMs leave, and the book becomes unsafe.
- Optimal: 50M+ for blue chips. At these levels, CLOB can achieve CEX-like spreads (< 0.1%).
- High volume: > $50M/day supports very tight ticks and high-frequency flow. For cross-chain pairs, we cap at a fraction of external chain volume (e.g. < 20% of Ethereum ETH/USDC) to avoid peg strain.
2. MM/LP Commitments (Depth) for Safe Operation
In pure CLOB, “LP” style commitment means resting order depth provided by market makers—bids and asks around the oracle mid—not pooled AMM reserves. We allow pure CLOB when:- Minimum: 2M bids, $2M asks near mid). This seeds the book so early trades can execute.
- Optimal: 20M per side for ETH/USDC) for < 0.1% spreads and large orders (> $1M) with < 0.5% slippage.
- Institutional: > $100M for major pairs (e.g. BTC) and very tight tick sizes.
3. Minimum Requirements Enforced by the System
To keep pure CLOB safe (e.g. limit oracle deviation to < 1%, minimize downtime and manipulation), we enforce these via governance and keeper logic (gov::update_params, morphcore/pkg/modules/clob/keeper/grpc_query_server.go):
Core minimums
- Liquidity depth: ≥ $1M per side within ±1% of oracle (checked periodically via snapshots).
- Daily volume: ≥ $100K (7-day rolling average) so fee income can sustain MMs.
- MM participation: ≥ 3 whitelisted MMs with ≥ 1.5M total collateral).
- Spread bound: Max bid-ask spread < 0.5%; orders that would violate this for > 5 minutes are rejected.
- Deviation guard: CLOB mid must stay within 1% of the multi-oracle consensus; trading pauses if breached.
- Circuit breakers: Auto-pause if volume spikes > 5× average (e.g. flash crash) or depth falls below 50% of minimum (liquidity drain).
- Incentives: e.g. 50% of fees to MMs; subsidies (e.g. from treasury) when volume is below target.
- Monitoring and slashing: Alerts if MM uptime drops (e.g. < 99%); slashing (e.g. 10%) for sustained poor performance (e.g. < 95%).
- Fallback: Route to Hyper-CLAMM when minimums are not met (atomic where supported).
- Testing: Matching engine tested with large order sets (e.g. > 1M orders) for correctness and race-freedom.
Appendix: Understanding “Min MM Depth per Side”
“Min MM Depth per Side” is the minimum resting liquidity (in quote, usually USDC) that market makers must keep on each side of the book (bids and asks separately) for the pure CLOB to be considered safe for that market.In plain terms
- MM = Market maker(s)—the whitelisted participants who place limit orders and keep the book usable.
- Depth = Total size (quantity × price) of resting orders near the best price, typically within ±0.5% to ±2% of the oracle mid.
- per Side = Bids and asks are counted separately. “30M in bids** and at least $30M in asks.
- Min = The floor below which we treat the market as unsafe and may pause CLOB, route to Hyper-CLAMM, or trigger MM incentives.
Example: ETH/USDC with $30M min depth per side
- Bid side: At least $30M worth of USDC ready to buy ETH at prices close to the oracle (e.g. within -0.5% to -2%).
- Ask side: At least $30M worth of ETH (in USDC terms) ready to sell near the oracle (e.g. within +0.5% to +2%).
Why it matters for MMs and traders
- For MMs: The min gives a clear target so they know how much depth to maintain; circuit breakers and fallback protect them when the book gets stressed.
- For traders: Enough depth means tighter spreads and lower slippage; if depth drops below min, spreads and slippage can spike (e.g. 1–5% instead of 0.1%), and the price can drift far from the oracle.
Example requirements by pair
How it’s enforced
- Snapshot checks (e.g. every epoch) via the CLOB keeper; depth counts only within bands of the oracle (e.g. ±1.5%).
- Circuit breaker if either side stays below threshold for > 5–15 minutes.
- Slashing / de-whitelisting for MMs who repeatedly fail to meet committed depth.
- Fallback to Hyper-CLAMM when CLOB depth stays below min for too long.