Architecture Overview

Understanding the two-program architecture of PercolatePerps

PercolatePerps uses a revolutionary two-program architecture that separates concerns between global coordination and individual trading execution:

Router Program

The Router Program acts as the global coordinator, managing:

  • Collateral custody across different asset types
  • Portfolio margin calculations across all positions
  • Cross-shard routing and coordination
  • User escrows and capability management

Slab Program

Each Slab Program is an independent LP-run perpetual engine with:

  • 10 MB state budget per slab
  • Self-contained order books and matching engine
  • Position tracking and settlement
  • Support for up to 32 trading pairs

Performance Specifications

Accounts per Slab
5,000
Max Orders
30,000
Trading Pairs
32
Execution Time
O(1)

Dive Deeper

Learn more about each component of the architecture