A perpetual DEX with multiple slabs - each liquidity provider can have their own 10MB slab with dedicated matching, risk, and LP management.
This is an enhanced fork with production-ready infrastructure, not a copy of the original work.
A perpetual DEX with multiple slabs - each liquidity provider can have their own 10MB slab with dedicated matching, risk, and LP management.
This is an enhanced fork with production-ready infrastructure, not a copy of the original work.
Essential terms to understand how PERColator works
A 10MB memory block containing an entire market - order book, positions, and all trading data in one contiguous space for maximum speed.
Two-phase trading: First 'reserve' locks liquidity at current prices, then 'commit' executes the trade - preventing price manipulation between steps.
A piece of reserved liquidity from a specific order. Your reservation might grab slices from multiple orders to fill your size.
Designated Liquidity Provider - VIP traders who can post orders immediately and trade during freeze windows. Think of them as market makers with special access.
Safety check that rejects trades if the price moved too much (default 1%) since you reserved. Protects you from stale prices.
Aggressor Roundtrip Guard - detects if you buy AND sell in the same batch (sandwich attempt) and charges you extra. Anti-manipulation.
Your cross-market account tracking total exposure and risk across all slabs. One portfolio, many markets.
Time-limited (2min max) authorization pass that lets specific markets access your funds. Scoped security - no blanket permissions.
Hourly payment between longs and shorts that keeps perpetual prices anchored to spot. If perp > spot, longs pay shorts (and vice versa).
Single 10MB account per market containing order book, positions, reservations, and free lists in one cohesive structure.
Sub-second execution times with O(1) operations and optimized memory pools for maximum trading performance.
Capability-based access control with time-limited tokens and anti-replay protection for secure operations.
Portfolio-level risk management with cross-slab margin calculations and unified collateral system.
Kill Band, JIT Penalty, and ARG systems protect against toxic order flow and ensure fair trading.
Four specialized programs (Router, Slab, AMM, Oracle) work together seamlessly with clear separation of concerns.
RoutqcxkpVH8jJ2cULG9u6WbdRskQwXkJe8CqZehcyrSLAB98WHcToiuUMMX9NQSg5E5iB8CjpK21T4h9ZXiepAMMjkEeFdasQ8fs9a9HQyJdciPHtDHVEat8yxiXrTP6poracpooXY8Nnpx2JTLkrLiJsDaMefERUFFRktkAZ3kiOrchestrates cross-slab atomic swaps, manages collateral vaults, and handles portfolio margin with liquidation monitoring.
10MB unified memory with price-time priority matching, fill receipts, and anti-toxicity protection (Kill Band, JIT Penalty, ARG).
Constant product market maker (x·y=k) with LP token rewards, dynamic fees, and deep liquidity for popular pairs.
Real-time multi-source price aggregation with mark price calculation, funding rates, and oracle verification for accurate liquidations.
Programs cannot access vaults directly. All operations require time-limited capability tokens with strict scope validation.