mirror of
https://github.com/tymur999/profit-script.git
synced 2025-08-02 14:50:34 +00:00
stop after 100 irrelevant results + require
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user