Skip to main content

Documentation Index

Fetch the complete documentation index at: https://scalex.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Unified CLOB DEX-Lending Protocol Architecture The ScaleX AI trading assistant is built on a unified CLOB DEX-Lending Protocol, eight core components that work together to maximize capital efficiency and enable autonomous agent-driven trading.

Core Components

The protocol operates through eight integrated components:
  1. Balance Manager - Maintains 1:1 peg, tracks yields, and issues synthetic tokens when users deposit assets
  2. Synthetic Tokens - ERC20 tokens representing 1:1 pegged underlying assets that trade on the order book while users earn yield from underlying deposits
  3. Order Book - High-performance CLOB with Red-Black Tree data structure for O(log n) price operations and integrated lending awareness
  4. Oracle - Multi-timeframe TWAP oracle providing manipulation-resistant pricing for trading, borrowing, and collateral valuation
  5. Lending Manager - Generates yield from real assets through native lending protocol with integrated order book access
  6. Agent - AI trading assistant layer, on-chain agents that autonomously trade, borrow, and earn yield on behalf of users within policy-defined limits
  7. ERC-8004 - On-chain identity standard that gives every agent a verifiable NFT identity, enabling accountability, reputation, and cross-protocol interoperability
  8. x402 - Pay-per-use payment gate that allows agents to monetize their trading strategies per trade, per session, or by subscription