Open pawangspandey opened 3 years ago
Cause is a free bot
Pada tanggal Sen, 21 Jun 2021 15.11, pawan @.***> menulis:
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Nafidinara/bot-pancakeswap/issues/47, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKRNYIXPL3Z6X6RAYMBNSJDTT3XZVANCNFSM47BB2STA .
const tx = await router.swapExactTokensForTokensSupportingFeeOnTransferTokens( //uncomment this if you want to buy deflationary token // const tx = await router.swapExactTokensForTokens( //uncomment here if you want to buy token
before executing this code we may approve the WBNB for swapping?
Like
WBNBContract.approve(process.env.ROUTER, amount_of_wbnb) // like this
This way we may don't need to approve the WBNB on pancake UI
How do I add this into the code?
https://github.com/LLemon199/pancake-uniswap-sniping-bot here is a bot that does this
before executing this code we may approve the WBNB for swapping?
Like
This way we may don't need to approve the WBNB on pancake UI