added time to sleep before getting accounts

This commit is contained in:
dd 2021-04-22 17:00:48 -04:00
parent de6940d057
commit 17edf431f5
1 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,7 @@ async function balanceWallets(
}
}
await sleep(1000) // Wait for account wallets to update
await sleep(3000) // Wait for account wallets to update
const liqorWalletAccounts = await getMultipleAccounts(connection, liqorWallets)
liqorValuesUi = liqorWalletAccounts.map(
(a, i) => nativeToUi(parseTokenAccountData(a.accountInfo.data).amount, mangoGroup.mintDecimals[i])
@ -357,4 +357,6 @@ async function runPartialLiquidator() {
}
runPartialLiquidator()
runPartialLiquidator()