🏗️Architecture
🌟 Architecture Overview

👥 User Layer
Participants
🏦 Lenders
💰 Borrowers
⚡ Liquidators
🖥️ Frontend Layer
Technology Stack
Key Components
📱 Pages
🎣 Custom Hooks
🧩 UI Components
💳 Wallet Integration
⛓️ Blockchain Layer (Somnia L1)
Network Specifications
Smart Contract Architecture
🏛️ DreamLend Contract
🎁 RewardsDistributor Contract
💎 DreamerToken Contract
🪙 Mock Tokens (Testnet)
🔮 Oracle Layer
DIA Oracle V2 Integration
Price Feed Architecture
Supported Price Feeds
Security Features
📊 Data Layer
The Graph Subgraph
Indexed Entities
Caching Strategy
🔄 Data Flow Architecture
1. User Interaction Flow
2. Price Update Flow
3. Liquidation Flow
🛡️ Security Architecture
Smart Contract Security
Oracle Security
Frontend Security
⚡ Performance Architecture
Scalability Features
Frontend Performance
Data Performance
🔮 Future Architecture
Planned Enhancements
Governance Integration
Last updated
