2. System Architecture
High-Level Architecture
The OmniLink protocol consists of five core layers:
┌─────────────────────────────────┐
│ User Interface Layer │
└───────────────┬─────────────────┘
│
┌───────────────▼─────────────────┐
│ Protocol Coordination Layer │
└───────────────┬─────────────────┘
│
┌───────────────▼─────────────────┐
│ Liquidity Management Layer │
└───────────┬───────────┬─────────┘
│ │
┌───────────▼───┐ ┌───▼───────────┐
│ Flash Loan │ │ Bridge │
│ Provider Layer│ │ Adapter Layer │
└───────────────┘ └───────────────┘
Cross-Chain Architecture
graph TD
subgraph "Ethereum"
E_FLH[Flash Loan Handler]
E_BA[Bridge Adapter]
end
subgraph "Arbitrum"
A_RLP[Recycling Liquidity Pool]
A_OR[Operation Registry]
A_BA[Bridge Adapter]
end
subgraph "Optimism"
O_RLP[Recycling Liquidity Pool]
O_OR[Operation Registry]
O_BA[Bridge Adapter]
end
E_FLH -- "Source Chain TX" --> E_BA
E_BA -- "Bridge TX" --> A_BA & O_BA
A_BA -- "Settlement" --> A_RLP
O_BA -- "Settlement" --> O_RLP
A_RLP -- "Instant Tokens" --> User
O_RLP -- "Instant Tokens" --> User
Data Flow Diagram
sequenceDiagram
participant User
participant Source Chain UI
participant Flash Loan Handler
participant Bridge System
participant Destination Chain
participant Recycling Pool
User->>Source Chain UI: Initiate cross-chain swap
Source Chain UI->>Flash Loan Handler: Request flash loan
Flash Loan Handler->>Flash Loan Handler: Take flash loan
Flash Loan Handler->>Bridge System: Send tokens to bridge
Bridge System-->>Bridge System: Begin cross-chain transfer
Destination Chain->>Recycling Pool: Request token release
Recycling Pool->>User: Instant token delivery
Note over Bridge System,Recycling Pool: Background Settlement
Bridge System->>Destination Chain: Complete token transfer (minutes later)
Destination Chain->>Recycling Pool: Replenish pool
Next: 🧩 Core Components Back to: Table of Contents