DracoR22 / handi-cat_wallet-tracker

Solana wallet tracker Telegram Bot, follow any wallet and get detailed information about every transaction in Raydium, Jupiter and pump.fun 😺
https://t.me/handi_cat_bot
57 stars 27 forks source link

Jupiter swap alert does not work for all tokens #4

Open Tugduall opened 1 day ago

Tugduall commented 1 day ago

While testing the bot, I realized that not all swaps on Jupiter were taken into account.

I try to swap from SOL to Pnut (2qEHjDLDLbuBgRYvsxhc5D6uDWAivNFZGan56P1tpump) but I get no alert in Telegram. I use SOLANA_NETWORK.

Could this be because Jupiter has been upgraded to v6?

Would you have an idea of the problem please?

L4r5s commented 18 hours ago

in src/lib/watch-transactions.ts in isRelevantTransaction() it should be: if (logString.includes(PUMP_FUN_TOKEN_MINT_AUTH)) { return { isRelevant: true, swap: 'mint_pumpfun' } } if (logString.includes(PUMP_FUN_PROGRAM_ID)) { return { isRelevant: true, swap: 'pumpfun' } } if (logString.includes(JUPITER_PROGRAM_ID)) { return { isRelevant: true, swap: 'jupiter' } } if (logString.includes(RAYDIUM_PROGRAM_ID)) { return { isRelevant: true, swap: 'raydium' } }

Jupiter has to return before Raydium or its gonna count it as a Raydium transaction because they share program ids most of the times