Protocol Overview
High-level summary of Brokex's five core contracts and capital flows.
Five-Contract Architecture
Brokex V1 consists of five core smart contracts deployed on Base Mainnet:
BrokexRegistry: Central configuration, role management (Ownable2Step+operator+treasury), market parameters, and Unified Mode A oracle view. Holds zero user or LP funds.BrokexRouter: Single user entry point for all trading actions and the only contract traders approve for USDC. Also escrows limit-open margins and reserves close-order shares.BrokexVault: ERC-4626 LP vault (brkUSDC, 9 decimals) that lends USDC toLongManagerand manages the strict FIFO withdrawal queue.LongManager: Manages cumulative per-(trader, asset)long positions, physicalNVDAccustody, Aerodrome CL swaps, and the globalRAY(1e27) debt index.ShortManager: Deployed to preserve 5-contract wiring, but disabled on Base Mainnet V1 (shortEnabled = false).
LONG Position LifecycleBase Mainnet · 1.0x–2.0x