From 9f05a8265f3a4202b6d114458b6bd3fa6006eaaa Mon Sep 17 00:00:00 2001 From: tymur999 Date: Sun, 26 May 2024 15:49:24 -0500 Subject: [PATCH] stop after 100 irrelevant results + require --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 08baccb..6498bc0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -18,7 +18,7 @@ async function calculatePumpFunProfit(walletAddress: PublicKey, myToken: PublicK let irrelevantTxns = 0; for(const sig of sigs) { - if(irrelevantTxns > 200) return solNetProfit; + if(irrelevantTxns > 100 && solNetProfit != 0) return solNetProfit; if(sig.err) { irrelevantTxns++; continue;