Smart Contract Reverted Error Code
Reverted Message | Reason | Resolve Steps |
---|---|---|
3 | Invalid Quantity (May min quantity) |
|
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. |
|
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 |
|
12 | Invalid remove margin |
|
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. |
|
22.2 | Try to open short orders when having active limit longs. |
|
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 |
|
43 | An Internal error in the processing chain |
|
51 | An internal error in the relayer |
|
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