Troubleshooting Errors πŸ’‘

Common error messages and how to solve them

INSUFFICIENT_OUTPUT_AMOUNT

You're trying to swap tokens, but your slippage tolerance is too low or liquidity is too low.

Solution
Reason
Solution
  1. Try trading a smaller amount at one time.

  2. Increase your slippage tolerance

    1. "SLIPPAGE": "49",

    2. If it does not work, go to settings.json and put : "UNLIMITEDSLIPPAGE": "true"

  3. Lastly, try inputting an amount with fewer decimal places.

Reason

This usually happens when trading tokens with low liquidity.

That means there isn't enough of one of the tokens you're trying to swap in the Liquidity Pool: it's probably a small-cap token that few people are trading.

However, there's also the chance that you're trying to trade a scam token which cannot be sold. In this case, PancakeSwap isn't able to block a token or return funds.

It can also happen when there are front-run bots moving the price very quickly

--> Be careful !

TRANSFER_FROM_FAILED

This can happen when you don't put enough Gas Limit.

Check if you don't have this in your transaction page :

Solution
Reason
Solution

Increase gas limit to 1 million or more

"GASLIMIT": "1000000",
Reason

This can happen with tokens with lots of additional fees, like this one :

​

​

TRANSFER_FAILED

This can happend when you're trying to buy a token where buying is limited to whitelisted wallets only in the beginning of the sale

Solution
Solution

There's nothing to do... you cannot buy if you're not on the whitelist πŸ€·β™‚