The crypto market is gaining traction quickly and along with it, more and more marketplaces, exchanges and bridges are popping up every day. That said, no matter how popular a particular crypto platform is, there’s no guarantee that it’ll always be flawless.
In this article, we’re taking a look at the “insufficient output amount” error in Pancakeswap, why it happens and what you can do to fix the problem.
Also read: How to fix ‘fail with error transferhelper: transfer_from_failed’?
Why does this error happen?
Generally speaking, if the price movement of a token exceeds the expected value (usually in percentages) by the exchange, the output amount becomes lower than what it should be hence triggering the error. Additionally, if there isn’t enough liquidity on the token’s liquidity pool, the error shows up and blocks the transaction.
The former is more of a security measure against scam tokens than an actual error but is quite effective at protecting naive investors who might jump at any opportunity, scam or not.
How to fix this?
Fixing the error is rather simple. Here are two solutions you can try out.
Reduce trade amount
This might sound weird, but having too many decimal points on your transaction value can sometimes cause problems with Pancakeswap causing it to not be able to estimate the gas fee.
The quickest and easiest solution to this is to simply change the transaction value not to have any or fewer decimals. Just play around with the token values until you have fewer decimals (or no decimals, ideally) and try the transaction again; it should go through without any issues.
Increase the slippage tolerance
One of the easiest ways of getting rid of the error is to increase your slippage tolerance to 12%. Do keep in mind, though, that changing the slippage tolerance will also impact the price you’re trading at as it sets the ratio between the expected price and the actual price at which the trade goes through.
To change the slippage tolerance, follow these steps.
Step 1: Head over to the Swap page of whatever token you want to swap and click the settings gear icon.
Step 2: Change the slippage tolerance to 12%.
Your transactions should go through without any problems now.
Also read: Pancakeswap error: Cannot estimate gas: 2 Fixes