Perpl Explainers

Technical deep-dives into Perpl's exchange architecture.

Change vs Post/Cancel

How Perpl's native Change order keeps the book full on Monad's parallel execution engine.

Virtualized Funding

How Perpl settles funding payments for 100,000+ positions using two storage reads instead of 100,000 writes.

Number Systems

CNS, PNS, LNS, ONS — the four integer representations powering the exchange, and the precision tradeoff baked into every market.

Withdrawal Rate Limiter

How the protocol caps fund outflows to survive an exploit — burst window, linear refill, bypass addresses, and owner force reset.

Mark Price Oracle Guard

How every mark-price update is bounded to the live spot oracle — the tolerance band, oracle freshness, role separation, and why a stolen price key still can't move the market.

Order Book Data Structure

How Perpl achieves O(1) insert and cancel on a fully on-chain CLOB — and why sorted-tree alternatives scale in cost with book depth.

Leverage Descent

How Perpl bounds open interest and descends leverage as a market fills — so a position opened near the cap is self-insured and can't become bad debt.

Page-ified Storage (MIP-8)

Whether Monad's MIP-8 page-storage upgrade would cut Perpl's gas — a slot-by-slot look at where the exchange's structs land on a 128-slot page, and why aggressive bit-packing already captured most of the win.