6.1 Rationale for a CLOB Architecture
Parallelshots adopts a Central Limit Order Book rather than an automated market maker in order to achieve explicit price discovery, reduced slippage under size, and compatibility with professional trading strategies. In memecoin markets, where liquidity is often discontinuous and volatility is extreme, AMM-based curves introduce nonlinear execution costs and reflexive price distortions. A CLOB provides discrete pricing, transparent depth, and strict execution ordering, all of which are critical for leveraged trading systems. The CLOB is implemented as a logical construct maintained by the matching engine, while its economic effects are enforced by on-chain settlement. The blockchain remains the system of record for balances, margin, and positions, while the order book itself is treated as ephemeral state that can be reconstructed from signed orders and execution events.6.2 Order Book Structure
For each marketm, the order book is defined as two priority queues:
remaining_quantity.
6.3 Price-Time Priority Enforcement
Execution priority is strictly defined as:o1 and o2 on the same side:
6.4 Matching Conditions
A match is executable when:6.5 Market Orders
Market orders are represented internally as limit orders with extreme price bounds:6.6 Risk-Gated Order Admission
Before insertion into the order book, each order must satisfy:6.7 On-Chain Settlement Interface
Each executed trade is settled via a canonical interface:- Position size
- Average entry price
- Locked margin
- Unrealized PnL
6.8 Failure and Recovery Guarantees
If the matching engine halts:- No orders are lost
- No balances are affected
- On-chain state remains authoritative

