Enhance trading system: real wallet validation, auto-discovery, and hot reloading

- Update trade validation to use real wallet balances from /api/wallet/balance
- Enhance wallet API to auto-discover all major SPL tokens (USDC, USDT, etc.)
- Improve AIAnalysisPanel to better extract and pass AI values to TradeModal
- Configure Docker Compose for hot reloading with proper volume mounts
- Remove hardcoded balance fallbacks in favor of live wallet data

Result: Trading validation now uses accurate real-time wallet balances
This commit is contained in:
mindesbunister
2025-07-16 11:37:20 +02:00
parent 77eb727f8d
commit ac50d9622c
4 changed files with 205 additions and 54 deletions

View File

@@ -1,5 +1,6 @@
services:
app:
container_name: trader_dev
build:
target: development # Use development target for faster builds
args:
@@ -17,7 +18,7 @@ services:
- TZ=Europe/Berlin
- CHROMIUM_PATH=/usr/bin/chromium
- DISABLE_CHROME_SANDBOX=true
- DISPLAY=${DISPLAY:-:0}
- DISPLAY=:0
- ALLOW_MANUAL_CAPTCHA=true
- DATABASE_URL=file:./prisma/dev.db
# Development optimizations
@@ -47,8 +48,11 @@ services:
- ./components:/app/components:cached
- ./package.json:/app/package.json:ro
# Port mapping for development
ports:
- "9000:3000"
# X11 and display configuration for manual CAPTCHA solving
network_mode: host
privileged: true
# Faster health check for development