Platform Architecture
System Overview
┌──────────────────────────────────────────────┐
│ USER INTERFACE │
│ React + TypeScript + Web3.js │
└────────────────┬─────────────────────────────┘
│
┌────────────────▼─────────────────────────────┐
│ API GATEWAY │
│ Rate Limiting | Auth | Load Balancing │
└────────────────┬─────────────────────────────┘
│
┌───────────┼───────────┬──────────┐
▼ ▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
│Scanner │ │Executor │ │Analytics│ │Oracle │
│Service │ │Service │ │Service │ │Service │
└─────────┘ └─────────┘ └─────────┘ └─────────┘
│ │ │ │
└───────────┴───────────┴──────────┘
│
┌───────▼────────┐
│SOLANA NETWORK │
│Smart Contracts │
└────────────────┘System Design Philosophy
Arb.fun's architecture prioritizes speed, reliability, and scalability. We've built our system using microservices that can scale independently based on load. This means the scanner can process millions of price updates per second while the execution engine maintains sub-second response times.
The scanner service monitors price feeds from all connected exchanges simultaneously. Using WebSocket connections for real-time data and fallback REST APIs for reliability, we maintain continuous market visibility. Our Rust-based processing engine can calculate over one million arbitrage opportunities per second, ensuring we catch even the briefest spreads.
The execution engine handles the complex orchestration of multi-venue trades. When you click execute on an opportunity, the system simultaneously places orders across exchanges, monitors for fills, and manages any necessary asset transfers. Smart routing algorithms optimize for the best execution path considering fees, slippage, and timing.
Smart Contract Infrastructure
Our smart contracts on Solana are built using the Anchor framework, providing security and upgradeability. The core ArbRouter contract handles opportunity validation and execution routing, ensuring trades only execute when profitable after all costs.
The ArbVault contract manages user funds for flash loan arbitrage. Your funds remain under your control with withdrawal available anytime. The vault enables capital-efficient arbitrage by borrowing funds only for the duration of the trade, eliminating the need for large capital reserves.
All contracts undergo professional auditing before mainnet deployment. We're working with leading Solana security firms to ensure bulletproof code. The audit reports will be published publicly, maintaining our commitment to transparency.
Last updated