Architecture
1. What Tycho Explorer Does
Tycho Explorer shows users live data about DEX pools. Users can see which pools exist and get price quotes for token swaps. The app updates in real-time as trades happen on the blockchain.
2. Architecture
┌─────────────────────────────────────────────────────────────────────┐
│ Frontend (React) │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Views: PoolList.tsx, NetworkGraph.tsx, SwapInterface.tsx │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ State: useWebSocket.ts, usePools.ts, FilterContext.tsx │ │
│ └─────────────────────────────────────────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────────┘
│ WebSocket + HTTP
┌───────────────────────────┴─────────────────────────────────────────┐
│ Backend (Rust) │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ API: ws.rs (WebSocket), pools.rs, simulation.rs │ │
│ └─────────────────────────────────────────────────────────────┘ │
│ ┌─────────────────────────────────────────────────────────────┐ │
│ │ Cache: Pool state, Route finder, Price calculator │ │
│ └─────────────────────────────────────────────────────────────┘ │
└───────────────────────────┬─────────────────────────────────────────┘
│ Tycho SDK
┌───────────────────────────┴─────────────────────────────────────────┐
│ Blockchains: Ethereum, Base, Unichain │
└─────────────────────────────────────────────────────────────────────┘3. When There Is a New Block
Data flow: Raw blockchain events → Structured pool updates → UI changes
4. When User Gets a Swap Quote
Data flow: User input → Route calculation → Best path selection → Quote display
Last updated