A comprehensive dashboard for monitoring and interacting with DeepBook Margin lending pools on the Sui blockchain, powered by DeepBook V3.
- Landing Page: Introduction to DeepBook Margin and dashboard capabilities
- Real-time Analytics: Monitor pool utilization, interest rates, and yield curves
- Position Management: Deposit, withdraw, and manage positions across multiple pools
- Yield Optimization: Compare yields and track historical performance
- Depositor Insights: View depositor distribution and protocol fees
- Transaction History: Comprehensive transaction tracking and analytics
- Pool Administration: Monitor pool parameters and risk metrics
The protocol enables margin trading through:
- Lending Pools - Users deposit assets to earn yield
- Margin Accounts - Traders borrow against collateral for leveraged positions
- DeepBook Integration - Trades execute on DeepBook's CLOB for best price discovery
- Pyth Oracle - Real-time price feeds for collateral valuation and liquidations
-
Install dependencies:
bun install
-
Configure server endpoints (optional):
Option A - Automatic (Recommended for local dev):
When running on
localhost, the app automatically useshttp://localhost:9008for the Testnet indexer.Option B - Manual override:
Edit
src/config/networks.tsdirectly to change the server URLs:const TESTNET_SERVER_URL = "http://localhost:9008"; // Your custom URL const MAINNET_SERVER_URL = "https://your-indexer.com";
-
Start the development server:
bun dev
-
Open your browser and navigate to
http://localhost:5173
/- Landing page with DeepBook Margin introduction/pools- Main dashboard with pool management and analytics/dashboard- Alternative route to the main dashboard
- React 18 with TypeScript
- Bun for build tooling and runtime
- Tailwind CSS for styling
- React Router for navigation
- Sui dApp Kit for blockchain integration
- Heroicons for UI icons
- Recharts for data visualization
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
We welcome contributions! Please ensure that:
- Your code follows the existing style conventions
- All tests pass
- You agree to license your contribution under Apache 2.0
If you discover a security vulnerability, please report it responsibly. Do not open public issues for security concerns.