Эх сурвалжийг харах

Update wait time before selling in processRaydiumPool function

BoiiButBot 1 жил өмнө
parent
commit
224deebb77
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      buy.ts

+ 2 - 2
buy.ts

@@ -259,8 +259,8 @@ export async function processRaydiumPool(updatedAccountInfo: KeyedAccountInfo) {
     }
     }
 
 
     await buy(updatedAccountInfo.accountId, accountData);
     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);
     await sell(updatedAccountInfo.accountId, accountData);
   } catch (e) {
   } catch (e) {
     logger.error({ ...accountData, error: e }, `Failed to process pool`);
     logger.error({ ...accountData, error: e }, `Failed to process pool`);