From 17edf431f5facd160ec063eac126206dc5602ef6 Mon Sep 17 00:00:00 2001 From: dd Date: Thu, 22 Apr 2021 17:00:48 -0400 Subject: [PATCH] added time to sleep before getting accounts --- src/partial.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/partial.ts b/src/partial.ts index 8f5c867..a5a5d55 100644 --- a/src/partial.ts +++ b/src/partial.ts @@ -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() \ No newline at end of file +runPartialLiquidator() + +