DEXolator

A decentralized perpetual exchange built on Solana that consolidates all market operations into a single unified memory structure with integrated liquidity and risk management

CONTRACT ADDRESS
7PwAxiGGZcGE9sZEq65TPMwpUs97vhM8bSoMRn97pump
Built upon Anatoly Yakovenko's Percolator | ~28 enhancements
This represents a significant evolution with enterprise-grade infrastructure and advanced trading capabilities.
Scroll to explore
CA Copied!

Core Concepts

Fundamental principles that power the DEXolator trading engine

Memory Block

A unified 10MB storage unit that houses complete market infrastructure - order book, user positions, and all trading metadata in a single optimized structure for ultra-fast execution.

Reserve-Commit Protocol

Two-stage trading mechanism: First 'reserve' secures liquidity at current market rates, then 'commit' finalizes the transaction - eliminating price manipulation between phases.

Liquidity Slice

A portion of reserved liquidity from a specific order. Your reservation may capture slices from multiple orders to fulfill your desired trade size.

Market Maker

Designated Liquidity Provider - privileged traders who can submit orders instantly and execute trades during restricted periods. Essentially institutional market makers with exclusive access.

Price Protection

Safety mechanism that rejects transactions if market price deviates beyond threshold (default 1%) since reservation. Shields traders from outdated pricing.

Roundtrip Tax

Aggressor Roundtrip Guard - identifies simultaneous buy/sell operations within the same batch (sandwich attempts) and applies additional fees. Anti-manipulation protection.

Account Portfolio

Your cross-market account monitoring total exposure and risk across all memory blocks. One portfolio, multiple markets.

Access Token

Time-restricted (2min maximum) authorization credential that enables specific markets to access your funds. Scoped security - no blanket permissions.

Price Alignment

Hourly settlement between long and short positions that maintains perpetual prices anchored to spot markets. If perp > spot, longs compensate shorts (and vice versa).

Platform Capabilities

Advanced functionality that sets DEXolator apart from traditional exchanges

Consolidated Storage System

One 10MB account per market housing order book, user positions, reservations, and memory pools in a unified architecture.

Lightning-Fast Execution

Millisecond execution speeds with O(1) operations and streamlined memory pools for optimal trading performance.

Enterprise Security

Permission-based access control with time-restricted credentials and anti-replay safeguards for secure trading operations.

Portfolio Risk Management

Account-level risk oversight with cross-market margin calculations and integrated collateral management.

Market Protection Systems

Price Protection, JIT Penalty, and Roundtrip Tax mechanisms defend against malicious order flow and maintain fair trading.

Component Architecture

Router and Memory Block programs collaborate seamlessly with distinct responsibilities and clear operational boundaries.

System Architecture

Solana Smart Contract Structure

Router Contract

RoutR1VdCpHqj89WEMJhb6TkGT9cPfr1rVjhM3e2YQr
  • Vault - Asset custody management
  • Escrow - User deposits with replay protection
  • Cap - Time-restricted access tokens (2min expiry)
  • Portfolio - Cross-market margin monitoring

Memory Block Contract

SLabZ6PsDLh2X6HzEoqxFDMqCVcJXDKCNEYuPzUvGPk
  • BlockState - 10MB account with 5 memory pools
  • Order Book - Price-time priority matching
  • Risk Engine - Initial/Maintenance margin calculations
  • Protection Systems - Price Protection, JIT Penalty, Roundtrip Tax

Storage Allocation (10MB)

Header
200B
Accounts
320KB
Orders
2.4MB
Positions
1.4MB
Reservations
480KB
Slices
512KB
Trades
800KB
Aggressor
192KB
Total: ~6.2MB (under 10MB limit)

Core Design Philosophy

Security Priority

Memory Blocks cannot access Router vaults directly. All withdrawals require valid, properly scoped Access Tokens.

High-Speed Matching

Price-time priority rigorously enforced. O(1) memory pool operations for optimal performance.

Storage Optimization

One 10MB account per market. Complete isolation between users and memory blocks.

Market Protection

Price Protection, JIT Penalty, and Roundtrip Tax systems defend against malicious order flow.

Development Stack

Pinocchio
Minimal dependency Solana SDK
Surfpool
Local development validator
Rust
no_std, minimal allocations
140+ Tests
Extensive test coverage