Brokex Docs
Docs/OVERVIEW/Introduction to Brokex

Introduction to Brokex

Decentralized margin trading for spot-backed tokenized equities on Base Mainnet.

Base Mainnet V1 LONG-ONLY Status

Brokex V1 is deployed on Base Mainnet (Chain ID 8453) in LONG-ONLY mode for NVDAc (1.0x–2.0x leverage). Short trading (ShortManager) and Aave V4 integration are deployed/wired in the contracts but disabled on-chain.

What is Brokex?

Brokex is a decentralized margin trading protocol for tokenized US equities on Base. Unlike synthetic perpetual exchanges that rely on virtual AMMs or off-chain order books, every leveraged position on Brokex is backed by real tokenized equity shares purchased directly on Aerodrome Concentrated Liquidity (Slipstream) pools and held in on-chain custody by LongManager.

Core Capabilities

  • Spot-Backed Leverage (1.0x–2.0x): Traders deposit USDC margin into BrokexRouter, borrow additional USDC from BrokexVault, and execute an atomic swap on Aerodrome CL to acquire tokenized equity (NVDAc).
  • ERC-4626 Liquidity Vault (brkUSDC): Liquidity providers deposit USDC into BrokexVault to earn 50% of trading fees and 100% of borrowing interest paid by leveraged traders.
  • On-Chain Limit, Stop-Loss & Take-Profit Orders: Permissionless keeper bots execute conditional orders via BrokexRouter.executeOrder.
  • Unified Mode A Oracle: Combines Aerodrome's 300-second TWAP with a Chainlink 24/7 reference price guard (maxDeviationBps = 200, or 2.00%).
Brokex V1 — Core Smart Contract & Liquidity Topology
USDCNVDAc EquitybrkUSDCDebt / InterestRisk / Oracle
ACTORSBROKEX CORE CONTRACTS (BASE 8453)EXTERNAL VENUESTrader1x–2x LONG MarginApproves Router onlyLiquidity ProviderSupplies USDC LiquidityHolds brkUSDC (9 dec)Keeper BotOrders, Liq & FIFODIRECT / PAYMASTERBrokexRouterLIVESingle Entry & Order Escrow0xCC3841...Fb1d26Limit / SL / TP Margin HoldBrokexVaultLIVEERC-4626 Pool & FIFO Queue0x7a463b...F89148O(1) NAV · Offset = 3LongManagerLIVEPhysical NVDAc Custody0x9fa2C7...f7D24eGlobal RAY Debt Index (1e27)ShortManagerDISABLEDIsolated Short Collateral0x9Dbc42...8148b2shortEnabled = false in V1BrokexRegistryConfig, Roles & Mode A Oracle0x9fF053...231F298 · Zero FundsAerodrome CL PoolNVDAc / USDC (tickSpacing 10)0x853F5f...C7ab9Spot Swaps + 300s TWAPChainlink 24/7 FeedNVDA Reference Price0x48D973...af944≤ 2.00% Deviation GuardAave V4 SpokeIdle USDC Yield CompartmentDisabled (aaveSpoke = 0x0)USDCDepositbrkUSDCMarginBorrow / Repay + 50% FeeUSDCNVDAc2% Deviation CheckexecuteOrderAave V4 Rebalancing (Disabled in V1)