Smart Contract Reverted Error Code

Reverted MessageReasonResolve Steps

3

Invalid Quantity (May min quantity)

  • Try another quantity.

  • Quantity must >= min quantity

  • Quantity must be a multiple of Min Quantity (Eg minQty = 0.01, quantity must be 0.02, 0.03, or 0.1)

4

The leverage of the increasing orders is lower than the leverage of the opening position

Try again with the leverage >= leverage of the opening position or close the position before trying to increase the leverage

5

The reduce quantity > opening position quantity

Our Smart contracts now only support “Reduce only” orders, which means the quantity of the reverse order must be less than or equal to the quantity of your opening position. If you enter a higher quantity, you will receive an error 5. Please make sure to stick to the required quantity limit.

6

Attempts to claim funds but the opening position is not closed.

  • This error may happen if the website is lagging, so please try to refresh the website and wait for the positions to load

  • Make sure your current position is closed before attempting to claim funds

8

Trying to remove margin on non-exist positions.

9

Trying to add margin on non-exist positions.

10

Invalid initial margin

11

Insufficient liquidity

  • This error happens when there is not having sufficient liquidity on the order book

  • Try to open an order with a lower quantity

12

Invalid remove margin

  • This error may happen if the website is lagging. Wait for the removable margin to be loaded

  • Or try to use a lower quantity

18

Order quantity = 0

Try to open the order with quantity != 0

20, 21

Invalid cancel order

This error may happen if the website is lagging or try to reload the website/mobile apps

22.1

Try to open long orders when having active limit shorts.

  • Currently, only one side order is supported at any given time.

  • Cancel your limit short orders before trying to open long orders

22.2

Try to open short orders when having active limit longs.

  • Currently, only one side order is supported at any given time.

  • Cancel your limit long orders before trying to open short orders

24.1

Exceeds max short price

Try to set the limit price > max short price

24.2

Exceeds max Long price

Try to set the limit price < max long price

25

Exceeds max slippage

Try to use a smaller quantity

26

Exceeds max notional

Try to use a smaller quantity

32

Immediately trigger TP, SL

42

An Internal error in the processing chain

  • Invalid transaction data

  • Should contact our dev team

43

An Internal error in the processing chain

  • Exceeds some limitation

  • Should contact our dev team

51

An internal error in the relayer

  • Internal error in relayers

  • Should contact our dev team

Other Frequently Asked Questions:

Q: Why are my positions or orders not showing up?

A: If your positions or orders aren't showing up, make sure you're connected to the correct wallet address. Additionally, check the order history to make sure that the position or order is closed. If these steps don't help, contact customer service for assistance in resolving the issue.

Q: Why errors 22.1, 22.2?

A: In the Ethereum Virtual Machine, there is a limitation when it comes to holding pending orders. Specifically, only one side of pending orders can be held at any given time. This means that if you have any active “long” limit orders, you are not able to open “short” market orders (or limit orders as well) until these long orders have been filled or canceled. We recognize the inconvenience this restriction may create and are actively working to remove it as soon as possible.

For Example:

If you have 3 active limit "Long" (Buy) BTC orders. You cannot open Short (Sell) Market and Limit orders until these 3 active limit orders are fulfilled or canceled. If you try to submit it, you may faced error 22.

Last updated