Troubleshooting errors

If you encounter the following issues:

INSUFFICIENT_OUTPUT_AMOUNT

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

  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.

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

INSUFFICIENT_A_AMOUNT or INSUFFICIENT_B_AMOUNT

Fail with error 'OniRouter: INSUFFICIENT_A_AMOUNT' or Fail with error 'OniRouter: 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.

OniRouter: EXPIRED

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

ONI: K

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

Out of Gas error

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

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

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 balance

Fail with error 'BEP20: transfer amount exceeds balance'

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

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

  1. Find the contract address of the Fuel 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. 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.

Last updated