From 2427a4974a20fc0f396be10e4b73a600fdd2fc8d Mon Sep 17 00:00:00 2001 From: dd Date: Sat, 17 Apr 2021 23:56:24 -0400 Subject: [PATCH] sleep time --- src/partial.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partial.ts b/src/partial.ts index e49f56f..0e683a2 100644 --- a/src/partial.ts +++ b/src/partial.ts @@ -159,7 +159,7 @@ async function runPartialLiquidator() { const markets = await Promise.all(mangoGroup.spotMarkets.map( (pk) => Market.load(connection, pk, {skipPreflight: true, commitment: 'singleGossip'}, dexProgramId) )) - const sleepTime = 0 + const sleepTime = 1000 // TODO handle failures in any of the steps // Find a way to get all margin accounts without querying fresh--get incremental updates to margin accounts