From cb15e8f4a3a82d7bd792ba57cf5ae870359b6665 Mon Sep 17 00:00:00 2001 From: TrooperCrypto Date: Thu, 10 Mar 2022 22:01:35 +0100 Subject: [PATCH] goodWalletIds not const --- marketmaker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marketmaker.js b/marketmaker.js index 035d1cb..cb05316 100644 --- a/marketmaker.js +++ b/marketmaker.js @@ -218,7 +218,7 @@ function isOrderFillable(order) { const sellDecimals = (side === 's') ? market.quoteAsset.decimals : market.baseAsset.decimals; const sellQuantity = (side === 's') ? quoteQuantity : baseQuantity; const neededBalanceBN = sellQuantity * 10**sellDecimals; - const goodWalletIds = []; + let goodWalletIds = []; Object.keys(WALLETS).forEach(accountId => { const walletBalance = WALLETS[accountId]['account_state'].committed.balances[sellCurrency]; if (Number(walletBalance) > (neededBalanceBN * 1.05)) {