jklepatch / eattheblocks

Source code for Eat The Blocks, a screencast for Ethereum Dapp Developers

Home Page:https://eattheblocks.com

Github PK Tool:Github PK Tool

Repository from Github https://github.com/jklepatch/eattheblocksRepository from Github https://github.com/jklepatch/eattheblocks

About the detection event of "348-pancakeswap-trading-bot"

tkc310 opened this issue · 0 comments

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.

In the bot, the event "PairCreated" is used as a trigger for trade execution when token liquidity is added.

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

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.

I'm looking into alternative events or logic to trigger trades other than "PairCreated", do you have any knowledge or ideas about this?