# ❗❓❗ Troubleshooting Errors

## **Issues on the Exchange** <a href="#issues-on-the-exchange" id="issues-on-the-exchange"></a>

### **INSUFFICIENT\_OUTPUT\_AMOUNT** <a href="#insufficient_output_amount" id="insufficient_output_amount"></a>

> The transaction cannot succeed due to error: PancakeRouter: INSUFFICIENT\_OUTPUT\_AMOUNT. This is probably an issue with one of the tokens you are swapping.

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

{% tabs %}
{% tab title=" Solution" %}

1. Refresh your page and try again later.
2. Try trading a smaller amount at one time.
3. Increase your slippage tolerance:

   1. Tap the settings icon on the liquidity page.
   2. Increase your slippage tolerance a little and try again.

   <img src="https://2957898154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZZjwNEywU2kD8Rzi-F%2F-MZgPlSc1klte1Bhh8ai%2F-MZgb4e_bMQmMsiWGWHg%2FSlippage.jpg?alt=media&#x26;token=c7c0e510-a118-4c46-bba4-9716dbc3a880" alt="" data-size="original">&#x20;
4. Lastly, try inputting an amount with fewer decimal places.
   {% endtab %}

{% tab title="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.
{% endtab %}
{% endtabs %}

**INSUFFICIENT\_A\_AMOUNT or INSUFFICIENT\_B\_AMOUNT**

> Fail with error 'PancakeRouter: INSUFFICIENT\_A\_AMOUNT' or Fail with error 'PancakeRouter: INSUFFICIENT\_B\_AMOUNT'

You're trying to add/remove liquidity from a liquidity pool (LP), but there isn't enough of one of the two tokens in the pair.

{% tabs %}
{% tab title="Solution" %}
**Refresh your page and try again, or try again later.**

Still doesn't work?

1. Tap the settings icon on the liquidity page.
2. Increase your slippage tolerance a little and try again.

<img src="https://2957898154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZZjwNEywU2kD8Rzi-F%2F-MZgPlSc1klte1Bhh8ai%2F-MZgb4e_bMQmMsiWGWHg%2FSlippage.jpg?alt=media&#x26;token=c7c0e510-a118-4c46-bba4-9716dbc3a880" alt="" data-size="original">&#x20;
{% endtab %}

{% tab title="Reason" %}
The error is caused by trying to add or remove liquidity for a liquidity pool (LP) with an insufficient amount of token A or token B (one of the tokens in the pair).

It might be the case that prices are updating too fast when and your slippage tolerance is too low.
{% endtab %}
{% endtabs %}

### SteakHouseRouter: EXPIRED

> The transaction cannot succeed due to error: SteakHoseRouter: EXPIRED. This is probably an issue with one of the tokens you are swapping.

Try again, but confirm (sign and broadcast) the transaction as soon as you generate it.&#x20;

This happened because you started making a transaction, but you didn't sign and broadcast it until it was past the deadline. That means you didn't hit "Confirm" quickly enough.&#x20;

### SteakHouse: K

> The transaction cannot succeed due to error: SteakHouse: K. This is probably an issue with one of the tokens you are swapping.

Refresh the page and try again, or increase slippage tolerance via the settings icon and try again.

This probably happened because you're trying to buy or sell tokens during a big price movement. The frontend is getting outdated information (e.g. outAmount) from the smart contract, causing the swap to fail.

## **Issues with GRILL Pools**

### ERC20: burn amount exceeds balance

> Fail with error 'ERC20: burn amount exceeds balance'

You don't have enough GRILL in your wallet to unstake from the STEAK-STEAK GRILL  pool.

{% tabs %}
{% tab title="Solution 1" %}
**Get at least as much GRILL as the amount of STEAK that you’re trying to unstake.**

1. Buy GRILL on the exchange. If you want to unstake 100 STEAK, you need at least 100 GRILL.
2. Try unstaking again.
   {% endtab %}

{% tab title="Solution  2" %}
If that still fails, you can perform an “emergencyWithdraw” from the contract directly to unstake your staked tokens.

1. Go to:&#x20;
2. Click **“Connect to Web3”** and connect your wallet.

![](https://2957898154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZZjwNEywU2kD8Rzi-F%2F-MZgPlSc1klte1Bhh8ai%2F-MZgccR_WWyHRWgZ0HEx%2FConnect.jpg?alt=media\&token=6b39ebab-b9cb-44ff-879f-81329ba37fcb)

&#x20;  3\. In section **“4. emergencyWithdraw”**, enter "0" and click “Write”

This will unstake your staked tokens and lose any uncollected STEAK yield.

{% hint style="warning" %}
**This will lose any yield that you haven’t harvested yet.**
{% endhint %}
{% endtab %}

{% tab title="Reason" %}
To stop this happening again, **don’t sell your GRILL.** You still need it to unstake from the “STEAK-STEAK” pool.

This error has happened because you have sold or transferred GRILL tokens. GRILLis minted in a 1:1 ratio to STEAK when you stake in the STEAK-STEAK GRILL Pool. GRILL must be burned at a 1:1 ratio to STEAK when calling leaveStaking (unstaking your STEAK from the pool), so if you don't have enough, you can't unstake from the pool.
{% endtab %}
{% endtabs %}

### Out of Gas error <a href="#out-of-gas-error" id="out-of-gas-error"></a>

> Warning! Error encountered during contract execution \[out of gas]

You have set a low gas limit when trying to make a transaction.

{% tabs %}
{% tab title="Solution" %}
Try manually increasing the **gas limit** (not gas price!) in your wallet before signing the transaction.&#x20;

A limit of 200000 is usually enough.&#x20;

<img src="https://2957898154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZZjwNEywU2kD8Rzi-F%2F-MZgPlSc1klte1Bhh8ai%2F-MZgekwa7jzy-mbLgwFp%2FGas%20fee.png?alt=media&#x26;token=9b37b358-5fa3-4ba7-b50f-c9786b12a44b" alt="" data-size="original">&#x20;

The above example is from Metamask; check your wallet's documentation if you aren't sure how to adjust the gas limit.
{% endtab %}

{% tab title="Reason" %}
Basically, your wallet (Metamask, Trust Wallet, etc.) can't finish what it's trying to do.

Your wallet estimates that the gas limit is too low, so the function call runs out of gas before the function call is finished
{% endtab %}
{% endtabs %}

### ERC20: transfer amount exceeds balance

> Fail with error 'ERC20: transfer amount exceeds balance'

You're trying to unstake from a GRILL Pool with low rewards in it.

{% tabs %}
{% tab title="Solution" %}
You can perform an “emergencyWithdraw” from the contract directly to unstake your staked tokens.

1. Find the contract address of the GRILL Pool you're trying to unstake from. You can find it in your wallet's transaction log.
2. Go to [explorer-mainnet.maticvigil.com/](https://explorer-mainnet.maticvigil.com/) and in the search bar, enter the contract address.
3. Select **Write Contract.**
4. Click **“Connect to Web3”** and connect your wallet.&#x20;

![](https://2957898154-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MZZjwNEywU2kD8Rzi-F%2F-MZgPlSc1klte1Bhh8ai%2F-MZgccR_WWyHRWgZ0HEx%2FConnect.jpg?alt=media\&token=6b39ebab-b9cb-44ff-879f-81329ba37fcb)

&#x20;  5\. In section **“4. emergencyWithdraw”,** enter "0" and click “Write”.

This will unstake your staked tokens and lose any uncollected yield.

{% hint style="warning" %}
**This will lose any yield that you haven’t harvested yet.**
{% endhint %}
{% endtab %}

{% tab title="Reason" %}
This error tends to appear when you're trying to unstake from an old GRILL Pool, but there aren't enough rewards in the pool left for you to harvest when withdrawing. This causes the transaction to fail.
{% endtab %}
{% endtabs %}
