revert: Back to last known working state (27eb5d4)

- Restored Drift client, orders, and .env from commit 27eb5d4
- Updated to current Helius API key
- ISSUE: Execute/check-risk endpoints still hang
- Root cause appears to be Drift SDK initialization hanging at runtime
- Bot initializes successfully at startup but hangs on subsequent Drift calls
- Non-Drift endpoints work fine (settings, positions query)
- Needs investigation: Drift SDK behavior or RPC interaction issue
This commit is contained in:
mindesbunister
2025-11-14 20:17:50 +01:00
parent db0961d04e
commit 6dccea5d91
3 changed files with 19 additions and 133 deletions

View File

@@ -654,7 +654,7 @@ export async function closePosition(
async function retryWithBackoff<T>(
fn: () => Promise<T>,
maxRetries: number = 3,
baseDelay: number = 8000 // Increased from 5s to 8s: 8s → 16s → 32s progression for better RPC recovery
baseDelay: number = 5000 // Increased from 2s to 5s: 5s → 10s → 20s progression
): Promise<T> {
const startTime = Date.now()