https://github.com/starc007/drift-manage
Drift subaccounts
https://github.com/starc007/drift-manage
Last synced: 3 months ago
JSON representation
Drift subaccounts
- Host: GitHub
- URL: https://github.com/starc007/drift-manage
- Owner: starc007
- Created: 2025-04-08T19:23:12.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-09T11:27:09.000Z (6 months ago)
- Last Synced: 2025-04-09T12:29:23.478Z (6 months ago)
- Language: TypeScript
- Homepage: https://drift-manage.vercel.app/
- Size: 275 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drift
A web application for managing Drift Protocol subaccounts, allowing users to view their portfolio value, manage deposits and withdrawals, and track their positions.
## Features
- View total portfolio value across all subaccounts
- Manage deposits and withdrawals
- Track spot and perpetual positions
- Real-time balance updates
- Support for multiple subaccounts## Tech Stack
- Next.js
- TypeScript
- Tailwind CSS
- Drift Protocol SDK
- Solana Web3
- ZustandNEXT_PUBLIC_RPC_URL## Getting Started
1. Clone the repository
```bash
git clone https://github.com/starc007/drift-manage.git
```2. Install dependencies
```bash
npm install
# or
yarn install
```3. Set up environment variables
Create a `.env.local` file with the following variables:```env
NEXT_PUBLIC_RPC_URL=your_solana_rpc_url
```4. Run the development server
```bash
npm run dev
# or
yarn dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the application.
## Project Structure
- `components/` - React components
- `appComp/` - Main application components
- `Subaccounts/` - Subaccount management components
- `utils/` - Utility functions and calculations
- `store/` - State management
- `hooks/` - Custom React hooks
- `service/` - External service integrations