From 224deebb77add58a29a5f0252928f7ba14fe0739 Mon Sep 17 00:00:00 2001 From: BoiiButBot Date: Fri, 9 Feb 2024 19:57:37 +0700 Subject: [PATCH] Update wait time before selling in processRaydiumPool function --- buy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buy.ts b/buy.ts index 4c93786..021de55 100644 --- a/buy.ts +++ b/buy.ts @@ -259,8 +259,8 @@ export async function processRaydiumPool(updatedAccountInfo: KeyedAccountInfo) { } await buy(updatedAccountInfo.accountId, accountData); - // wait for 5 seconds before selling - await new Promise((resolve) => setTimeout(resolve, 5000)); + // wait for 2 seconds before selling + await new Promise((resolve) => setTimeout(resolve, 2000)); await sell(updatedAccountInfo.accountId, accountData); } catch (e) { logger.error({ ...accountData, error: e }, `Failed to process pool`);