Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

289
Views
Swap any token for any token - Sniper Bot Javascript - - pancakeswap, quickswap, caffeswap

We are making this sniper bot https://github.com/Nafidinara/bot-pancakeswap , which only can swap WBNB (or MATIC or KCS, depends on the blockchain you select) for any token.

So we want to swap any tokens for any tokens.

Example: swap CAKE for WBTC

The function that you will find at this code is "swapETHforExactTokens". Now we are using "swapExactTokensforTokens" for swapping any token, and it runs well, but we get this error at the blockchain:

TRANSFER_FROM_FAILED

https://polygonscan.com/tx/0xf584e421990628131b92b22b2aad270e91752287817eeb518a4d9bdb4b37d086

Do you know how to solve this?

Thanks!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!