About the detection event of "348-pancakeswap-trading-bot"
tkc310 opened this issue · comments
Hello.
I have watched your youtube course on how to create a bot to be used on pancakeswap.
I would like to ask a question after actually using the bot.
https://github.com/jklepatch/eattheblocks/tree/master/screencast/348-pancakeswap-trading-bot
In the bot, the event "PairCreated" is used as a trigger for trade execution when token liquidity is added.
https://github.com/jklepatch/eattheblocks/blob/master/screencast/348-pancakeswap-trading-bot/bot.js#L48
factory.on('PairCreated', async (token0, token1, pairAddress) => {
However, some recent tokens are not "PairCreated" to trigger the token to become available for purchase, probably to prevent bots.
For example, the following thread on reddit
https://www.reddit.com/r/pancakeswap/comments/nk5z95/event_paircreated_not_being_emitted_by_some/
In fact, I tried to trade a token like BSCPAD, which has Launchpad as an agent, with "PairCreated" as the trigger when it was listed on pancakeswap, but I failed.
https://bscpad.com/
I'm looking into alternative events or logic to trigger trades other than "PairCreated", do you have any knowledge or ideas about this?