by Narendra

One problem that Metamask users of Pancakeswap are having more and more is that they keep getting the error message SWAP FAILED: “REPLACEMENT FEE TOO LOW ERROR,” which means that the transaction can’t go any further. The error message makes the user feel like they’ve reached a dead end, which slows down the day’s grill.

For people who have to get to the bottom of a problem to find a solution, it’s a good thing that we talked about how to get past this error and keep working on your task without any trouble in today’s article. Let’s get going.

What does it mean when it says “SWAP FAILED: REPLACEMENT FEE TOO LOW”?

When a user wants to trade tokens, they usually enter the amount they want to buy and the details of the exchange. Then, they clicked “Swap” in a blue box to “Confirm” the swap. After the details of the transaction are shown in a drop-down menu, the user clicks a final confirmation button. Users have complained about the SWAP ERROR at the exact same time here.

First, let’s look at how the error message shows up on the interface:

It looks like a bunch of unreadable codes, and the only clue is that it has something to do with the transaction fee. Yes, you’re very close to being right!


This error happens when a user tries to buy a token that has a gas fee that is very low. When the user is typing in the details of the token trade, the contract sometimes changes the setting on the user’s Metamask automatically, which causes the error.

This error also happens when a user buys a token with a contract that says it will lower the gas costs. So, while the user is typing in the details of the transaction, this token tries to change the settings, which causes the following error code:

Swap failed: replacement fee too low (error={“code”:-32603,”message”:”Error: [ethjs-query] while formatting outputs from RPC ‘{\”value\”:{\”code\”:-32603,\”data\”:{\”code\”:-32000,\”message\”:\”replacement transaction underpriced\”}}}’”,”stack”:”Error: Error: [ethjs-query] while formatting outputs from RPC ‘{\”value\”:{\”code\”:-32603,\”data\”:{\”code\”:-32000,\”message\”:\”replacement transaction underpriced\”}}}’”}, method=”sendTransaction”, transaction=undefined, code=REPLACEMENT_UNDERPRICED, version=providers/5.0.19) 

As you can see from the error message, these are the most likely causes:

i)The price of gas is way too low.

Buying a token with a contract that tries to lower your gas fee

To fix the error, the charges that were originally put in need to be changed by hand.


If the gas fee is very low, the replacement will have to be fixed by hand. To get rid of the transaction fail error on Pancakeswap when using Metamask, carefully follow the steps below:

Use Dismiss Button

When you get an error message in Pancakeswap through Metamask while entering transaction details, click the “Dismiss” button inside a blue box.

Click the Change Bars

Under ‘Exchange’ is written ‘Trade tokens in an instant.’ You can see tiny fluctuation bars to the right of “Exchange tokens in an instant.” Click on the bars, and now we’ll slowly raise the price of gas.

Check the details of the transaction

Repeat the step where you enter the details of the transaction and click “Confirm Swap” in the blue box, even though the screen says “Waiting for Confirmation.”

Raise the price of gas by hand

When the process brings you to the last step of reviewing your account information, you must manually increase the Gas Price and try to get it to “06” while keeping an eye on the “Gas Limit.”

Submit Transaction

When you put “06” in the “Gas Price” box and click “Confirm,” a “Transaction submitted” drop-box appears on your screen.

Close Transaction

Click “Close” to get rid of the window.

Error Removed

Check to see if you fixed the replacement error correctly by hand.

Alternative Methods to Resolve the “SWAP FAILED: REPLACEMENT FEE TOO LOW” ERROR

If the steps above don’t help you get rid of the error, you can try the following:

Try increasing the slippage from 13 to 15, and raise the gas fee by hand to 7.
Try something else.
If none of the above works, you probably bought a fake token, since either the first steps or the other ways above will get rid of the error.

Until a few months ago, the replacement error was a big problem for Pancakeswap Metamask users. Users were confused and thought it was a technical problem that was stopping their token transaction.

Now that you know you can fix it manually by entering the gas fee, give it a try and see how quickly it fixes your problem.