mirror of
https://github.com/ZigZagExchange/zksync-lite-market-maker.git
synced 2025-12-17 15:14:30 +01:00
goodWalletIds not const
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user