added time to sleep before getting accounts
This commit is contained in:
parent
de6940d057
commit
17edf431f5
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue