Troubleshooting Errors

Issues on the Exchange

INSUFFICIENT_OUTPUT_AMOUNT

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

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

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

  • Refresh your page and try again later.

  • Try trading a smaller amount.

  • Increase your slippage tolerance:

    1. Tap the settings icon on the liquidity page;

    2. Increase your slippage tolerance a little;

    3. Try running the transaction again.

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

INSUFFICIENT_A_AMOUNT or INSUFFICIENT_B_AMOUNT

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

  • Refresh your page and try again later.

  • Increase your slippage tolerance:

    1. Tap the settings icon on the liquidity page;

    2. Increase your slippage tolerance a little;

    3. Try running the transaction again.

CSTRouter: EXPIRED

The transaction cannot succeed due to error: CSTRouter: 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.

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.

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

CSTRouter: K

The transaction cannot succeed due to error: CST: 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.

CST: TRANSFER_FAILED

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

Make sure you have 30% more tokens in your wallet than you intend to trade, or try to trade a lower amount. If you want to sell the maximum possible, try 70% or 69% instead of 100%.

Transaction cannot succeed

or

Price impact too high

Try trading a smaller amount, or increase slippage tolerance via the settings icon and try again.

estimateGas failed

This transaction would fail. Please contact support

1. Attempt the transaction again with increased slippage allowance;

2. Consider using another wallet (such as SafePal) for your transaction.

Cannot read property 'toHexString' of undefined

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

When trying to swap tokens, the transaction fails and this error message is displayed. This error has been reported on mobile devices using Trust Wallet.

1. Attempt the transaction again with increased slippage allowance;

2. Consider using another wallet (such as SafePal) for your transaction.

Execution reverted: TransferHelper: TRANSFER_FROM_FAILED

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

Check to make sure you have sufficient funds available.

Ensure you have given the contract allowance to spend the amount of funds you're attempting to trade with.

Issues with Pools

Out of Gas error

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

Try manually increasing the gas limit (not gas price!) in your wallet before signing the transaction.

A limit of 200000 is usually enough.

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

BEP20: transfer amount exceeds allowance

Fail with error 'BEP20: transfer amount exceeds allowance'

  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.

BEP20: transfer amount exceeds balance

Fail with error 'BEP20: transfer amount exceeds balance'

You're probably trying to unstake from a Pool with low rewards in it. Solution below.

If not, you may be trying to send tokens that you don't have in your wallet (for example, trying to send a token that is already assigned to a pending transaction). In this case, just make sure you have the tokens you're trying to use.

Firstly, let the team know which pool you're trying to unstake from, so we can top up the rewards. If you're in a hurry to unstake and you don't mind losing your pending yield, try an emergencyWithdraw:

You can perform an “emergencyWithdraw” from the contract directly to unstake your staked tokens:

  1. Find the contract address of the Pool you're trying to unstake from. You can find it in your wallet's transaction log.

  2. Go to https://bscscan.com/ and in the search bar, enter the contract address.

  3. Select Write Contract.

  4. Click “Connect to Web3” and connect your wallet.

  5. In section “4. emergencyWithdraw”, enter "0" and click “Write”.

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

This will lose any yield that you haven’t harvested yet.

Other Issues

Provider Error

Provider Error No provider was found

Install the official browser extension to connect, or read our guide on how to connect a wallet to CryptoSwap.

Unsupported Chain ID

Switch your chain to Binance Smart Chain. Check your wallet's documentation for a guide if you need help.

Internal JSON-RPC errors

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

Try using an alternative wallet.

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

Add more BEP20 BNB to your wallet and run the transaction again.

Error: [ethjs-query]

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

Increase the gas limit for the transaction in your wallet. Check your wallet's documentation to learn how to increase gas limit.

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

Try these steps before trying again:

  1. Increase gas limit

  2. Increase slippage

  3. Clear cache

Last updated