goodWalletIds not const

This commit is contained in:
TrooperCrypto
2022-03-10 22:01:35 +01:00
parent 22606ea717
commit cb15e8f4a3

View File

@@ -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)) {