CRITICAL FIX: Replace Jupiter with Drift Protocol in automation service

- Remove Jupiter DEX import and dependencies from automation-service-simple.ts
- Replace executeLiveTrade method to use Drift Protocol via /api/automation/trade
- Add dexProvider field to AutomationConfig interface
- Update AI risk management to use calculateAIStopLoss/calculateAITakeProfit methods
- Fix all Jupiter references to use Drift Protocol instead
- Ensure automation uses proper Drift leverage trading instead of Jupiter spot trading
- Route trades through unified API that defaults to DRIFT provider

This resolves the issue where automation was incorrectly using Jupiter DEX
instead of the configured Drift Protocol for leveraged trading.
This commit is contained in:
mindesbunister
2025-07-24 11:14:22 +02:00
parent 241c2bd436
commit 9e6de772f2
2 changed files with 46 additions and 43 deletions

Binary file not shown.