From 59295b08cb81ef4eadd40b03cee67a50ca05f438 Mon Sep 17 00:00:00 2001 From: direkturcrypto Date: Wed, 25 Feb 2026 03:44:32 +0700 Subject: [PATCH] fix: remove duplicate 'client' declaration in executeSell The const client = getClient() was declared twice in the same function scope (line 318 for cancel-orders block, line 371 for the sell loop), causing a SyntaxError at startup. Removed the redundant second declaration. Co-Authored-By: Claude Sonnet 4.6 --- src/services/executor.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/services/executor.js b/src/services/executor.js index 5f0501a..a9f37f1 100644 --- a/src/services/executor.js +++ b/src/services/executor.js @@ -368,7 +368,6 @@ export async function executeSell(trade) { // Round down to 4 decimal places to avoid sub-unit precision errors sharesToSell = Math.floor(sharesToSell * 10000) / 10000; - const client = getClient(); let filled = false; for (let attempt = 1; attempt <= config.maxRetries; attempt++) {