completePumpAmmMigrationEvent never fires, while completeEvent works fine
Hi, @D3AD-E
I’m trying to listen to the completePumpAmmMigrationEvent so that my script can detect when a pool is migrated to PumpSwap (to trigger a buy/sniping logic).
Here’s a minimal example of what I’m doing:
const pump = new PumpFunSDK(getProvider());
export const event = new EventModule(pump);
event.addEventListener("completePumpAmmMigrationEvent", (event) => {
console.log("Event: ", event);
});
event.addEventListener("completeEvent", (event) => {
console.log("Event: ", event);
});
console.log("listening events...");
When running this:
I do get logs for completeEvent ✅
I never receive completePumpAmmMigrationEvent ❌
However, I can clearly see the token trading on PumpSwap (DexScreener / GMGN.ai), so the migration definitely happened on-chain.
Question: Is completePumpAmmMigrationEvent still emitted by the program, or has the event name/IDL changed? If it’s supposed to be emitted, could this be a bug in the event handling/converters?
Thanks in advance for the clarification 🙏
I will take a look but I do not recommend listening to events if you want to snipe properly, look into decoding solana txs with Yellowstone grpc or really low latency shred decoding. Events use websockets under the hood and data is delayed and can even get misordered. @resfa-dsx