Troubleshoot

While using WigoSwap, you may run into issues you find difficult to deal with. Hence, you may need to check the following troubleshooting tips to find the solution to the problem youโ€™ve been confronted with.

Insufficient_output_amount

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

or

The transaction cannot succeed due to error: execution reverted: WigoswapRouter: insufficient_output_amount.

You cannot swap tokens due to low slippage tolerance or low liquidity of the related token pair.

Reason

The liquidity for the tokens you try to swap is insufficient. This can partly be due to the low market cap of the tokens you want to swap, and the fact that fewer people are trading those tokens.

Another reason for this type of problem can be related to scam tokens that cannot be sold due to their fraudulent nature. In such cases WigoSwap does not have the authority to block those tokens, and is also unable to return funds.

Solution
  1. Refresh your page or try swapping the tokens later.

  2. Lower the amount you decide to trade with.

  3. Raise the level of your slippage tolerance; to do so, first open the โ€˜settingsโ€™ on the liquidity page. Then use the buttons to choose a higher slippage tolerance or enter the amount manually and try again.

  4. Finally, use fewer decimal places in the amount you have entered.

Insufficient_A_amount or Insufficient_B_amount

Fail with error 'WigoswapRouter: INSUFFICIENT_A_AMOUNT' or Fail with error 'WigoswapRouter: INSUFFICIENT_B_AMOUNT'

You may face this problem while adding/removing liquidity from a pool with an insufficient amount of one of tokens in the pair.

Reason

The primary reason for this type of error is the insufficient amount of one of the tokens in the liquidity pool you decide to add/remove your liquidity from.

Other possible reasons can be the fast rate of price updates, or your low slippage tolerance.

Solution
  1. Refresh the page and try again.

  2. If the problem is not solved, open the โ€˜settingsโ€™ on the liquidity page. Then use the buttons to increase the slippage tolerance or enter the amount manually and try again.

WigoswapRouter: Expired

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

Reason

This error occurs when you donโ€™t confirm the transaction within the limited time. In other words, confirming the transaction has been done with a significant delay.

Solution

Try repeating the transaction, and โ€˜confirmโ€™ the operation immediately after you are asked to do so.

Wigoswap: K

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

Reason

This error usually occurs when the operation includes swapping a token with its own fee.

Solution

Set the amount in the โ€œToโ€ field manually so that the estimation is done for the token in the โ€œFromโ€ field.

Wigoswap: Transfer_Failed

The transaction cannot succeed due to error: execution reverted: Wigoswap: TRANSFER_FAILED.

Reason

This error can be is caused by the design of Restorative Rebase Tokens like tDoge or tBTC. Learn more here:

Restorative Rebase

Solution

Ensure that there are 30% more tokens in your wallet than the amount you decide to trade. You may have to enter 69% or 70% (instead of 100%) if you intend to sell the entire amount you have.

There may be other reasons besides the one mentioned above. For example, a dishonest token issuer might suspend the trading of its tokens. The token issuer can also prevent you from selling, while allowing certain addresses to sell their tokens. In order to avoid such risks, please exercise due diligence before investing in any type of project. In some cases, swapping tokens obtained through airdrops may lead to this error. This can indicate that the airdrop was probably a scam in the first place. In such a situation avoid the approval of any tokens or following any links as it can lead to your funds being at risk.

Transaction cannot succeed

Reason

This error occurs due to low liquidity.

Solution

Repeat the transaction with a lower amount, or a higher slippage tolerance. To increase the slippage tolerance, open the โ€˜settingsโ€™ on the liquidity page. Then use the buttons to choose a higher slippage tolerance or enter the amount manually and try again.

Price impact is too high

Reason

This error occurs due to low liquidity.

Solution

Repeat the transaction with a lower amount, or a higher slippage tolerance. To increase the slippage tolerance, open the โ€˜settingsโ€™ on the liquidity page. Then use the buttons to choose a higher slippage tolerance or enter the amount manually and try again.

Cannot read property โ€˜toHexStringโ€™ of undefined

"Unknown error: "Cannot read property 'toHexString' of undefined"

Usually seen on smartphones using TrustWallet, this error is displayed while trying to swap tokens.

Reason

This is probably caused by the insufficient slippage allowed on TrustWallet. The details of the error are not clear though.

Solution

Increase the slippage tolerance and try performing the transaction again.

In case the problem is not solved, you probably need to use another wallet on your device to perform the transaction.

Execution reverted: Transferhelper: Transfer_From_Failed

The transaction cannot succeed due to error: execution reverted: TransferHelper: TRANSFER_FROM_FAILED.

Reported on various platforms, this error is displayed while trying to swap tokens.

Reason

There are some possible reasons for this error. The reasons include insufficient amount of funds in the wallet, or disagreement between the amount permitted to be spent and the amount being spent. Furthermore, since trading tokens with Restorative Rebase requires adequate knowledge about their features, take your time to use this guide for more information:

Restorative Rebase

Solution

You have to check the amount of your funds to see if itโ€™s sufficient.

Ensure that the amount of funds you are trading with does not exceed the amount of funds you have given the contract the permission to spend.

Burn amount exceeds balance

Fail with error 'ERC20: burn amount exceeds balance'

or

EmergencyWithdraw: You do not have enough xWIGO!

Reason

Since you need the WigoBank (xWIGO) Tokens to unstake your WIGO tokens from the Standard staking pool in the WigoBank, you should not sell or transfer those tokens. The ratio of the xWIGO tokens transferred to your wallet to the WIGO tokens youโ€™ve staked is 1:1. Therefore, when you want to unstake your WIGO tokens, the same amount of xWIGO tokens must be burned. If the amount of xWIGO tokens you have is insufficient, you will face this error.

Solution

If you are trying to unstake WIGO and this error occurs, you have to obtain as many WigoBank (xWIGO) tokens as the amount of WIGO tokens you decide to unstake.

Out of gas error

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

The gas limit you have set while performing a transaction is low.

Reason

This problem is caused by your wallet being unable to complete the action. The reason is that your wallet considers the determined gas limit to be too low. Therefore, the gas is finished before the function is completed.

Solution

Prior to confirming the transaction, raise the amount of โ€˜Gas Limitโ€™ in your wallet. Note that adjusting the gas limit might be slightly different in various wallets. To find the related information you can check your walletโ€™s documentation.

Transfer amount exceeds allowance

Fail with error 'ERC20: transfer amount exceeds allowance'

Reason

This happens when you set a limit on your spend allowance when you first approved the contract, then try to swap more than the limit.

Solution
  1. Use Unrekt.net to revoke approval for the smart contract you're trying to interact with

  2. Approve the contract again, without setting a limit on spend allowance

  3. Try interacting with the contract again.

Transfer amount exceeds balance

Fail with error 'ERC20: transfer amount exceeds balance'

This type of error is displayed when you are attempting to unstake from an old WigoBank staking pool with low rewards to harvest. Therefore, the transaction fails.

Reason

You may see this error if you are attempting to withdraw from a WigoBank staking pool in which the reward is lower than expected.

If this is not the case, the other reason for such an error might be sending tokens that are not available in your wallet (for example, tokens that have already been sent and the process has not completed yet, or the transaction is pending). Therefore, double-check the availability of the tokens you want to transfer.

Solution

Inform the team about the problem with the WigoBank so that they increase the rewards to the desired level. However, if you are fine with not harvesting the unclaimed rewards, you can use โ€˜emergency withdrawalโ€™. To do so you can follow the steps below:

  1. Find the contract address of the WigoBank staking pool from which you are attempting to unstake your tokens. The address is shown in your walletโ€™s transaction log.

  2. Open FTMScan and in the search field enter the contract address.

  3. Select the โ€˜Write Contractโ€™ tab.

  4. Connect your wallet by clicking on the โ€˜connect to web 3.0โ€™ button.

  5. Enter 0 in the โ€˜emergency withdrawโ€™ box, and click on the โ€˜writeโ€™ button.

Note that by unstaking your tokens using this method, it would not be possible to harvest any unclaimed rewards.

Other Issues

Provider Error

Provider Error No provider was found

Reason

This error is displayed in case youโ€™ve not installed your walletโ€™s browser extension (e.g. MetaMask browser extension) and you try to connect your wallet.

Solution

Install the browser extension of the wallet you wish to connect to WigoSwap from official sources. You can learn how to connect your wallet to WigoSwap here.

Unsupported Chain ID

In this case you have to change your chain to Fantom Opera Network. You may also need to get help from your walletโ€™s official documentations.

Internal JSON-RPC errors

MetaMask - RPC Error: Internal JSON-RPC error. estimateGas failed removeLiquidityETHWithPermitSupportingFeeOnTransferTokens estimateGas failed removeLiquidityETHWithPermit

There is no certainty regarding the cause of this error. It usually occurs when you attempt to remove liquidity from some tokens using MetaMask. Trying another wallet for the operation solves the problem.

Internal JSON-RPC error. { "code": -32000, "message": "insufficient funds for transfer" } - Please try again.

The amount of FTM you need to pay for the transaction fee is not sufficient. Try providing the adequate amount.

Error: [ethjs-query]

Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"transaction underpriced"}}}"

To solve this problem, you need to raise the transactionโ€™s gas in your wallet. You can check your walletโ€™s guides to understand the process for increasing the gas limit.

Swap failed: Error: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32603,"message":"handle request error"}}}'

To solve the above problem, go through the following steps:

  • Increase the gas limit

  • Increase the slippage tolerance

  • Clear cache

Last updated