Position Exchange
  • Position Exchange Introduction
  • Getting started
    • Create a wallet
    • Get BEP20 Tokens
  • Business and Partnerships
    • Community Leaders Referral Program
  • Position Token (POSI)
    • What is POSI?
    • A Deflationary Token
      • Buy back and Burn
      • Anti-whale
      • Harvest Lock up
    • RFI Technology
    • Buy POSI
    • POSI Tokenomics
    • How is the TVL Calculated?
  • Products
    • Perpetual Trading Protocol
      • Perpetuals basics
        • Why Can't I Place a Futures Order?
        • Order type
        • Leverage for Perpetual Futures Contracts
        • Mark Price in Perpetual Futures Contracts
        • Funding rates
      • Beginner's guide
        • Connect your Wallet
        • Open Position
          • Open Limit Order
          • Open Market Order
        • Adjust Margin
          • Add Margin
          • Remove Margin
        • Set TP/SL
        • Close Position
          • Close Market
          • Close Limit
        • Position Exchange's Futures Transaction Fees
        • Trading Perpetuals
        • How to adjust the Leverage
        • Funding rate
        • Crypto Perpetuals
      • Perpetuals Specs
        • Smart Contract Reverted Error Code
      • Futures Referral
        • Futures Referral for Referrer
        • Futures Referral for Referee
      • Futures Task
    • DEX 2.0
      • Spot Trade 2.0 User Guideline
      • Concentrated Liquidity
        • Initialize a new pool
        • Add and Remove Liquidity
        • Shift range
        • Increase Decrease Liquidity
      • DEX Referral Rules
      • Incentives Programs
        • Position Exchange DEX Airdrop Introduction
        • DEX Airdrop Referral Rules
        • Lucky Fee
        • How to join Pancake Migrate Airdrop
        • How to join the Liquidity Providers Incentive Program
        • How to join the Lucky Fee Program
        • Reward Distribution Schedule
    • Exchange
      • Token Swaps
      • How to trade
      • Liquidity pools
      • How to Add/Remove liquidity
    • Position Bonds (Crypto Bonds)
    • Position P2P Bond
      • Sale rules
      • User's guide
        • How to issue a bond
        • How to purchase a bond
        • How to manage a bond - For issuers
        • How to claim assets when Bond's liquidated/matured - For holders
      • Liquidation
      • Policy
      • FAQs
    • Farming
      • How to use farms
    • Staking
    • NFTs
      • How to Cast & Stake NFTs
    • Referral System
    • Vaults
    • Gain Grid
      • Getting Started with Gain Grid
      • Volatility Interest
      • Gain Grid Frequently Asked Questions (FAQs)
      • Gain Grid Referral Program
      • Gain Grid Terms and Conditions
    • 📱Mobile App
    • Migration
      • Farms/Pools Migration Guideline
      • Vesting Schedule
      • New Staking Contracts
  • Whitepaper
  • Security
    • Audits
    • Privacy Policy
  • Others
    • Contracts
    • Social Accounts
  • Governance
    • What is Position Exchange Governance?
  • Roadmap
    • Position Exchange & Development Plan
  • Community
    • Reports (Bugs, Feedback, Suggestions)
    • Frequently Asked Questions (F.A.Q)
  • Events
    • POSI Twitter Lottery
Powered by GitBook
On this page

Was this helpful?

  1. Products
  2. Perpetual Trading Protocol
  3. Perpetuals Specs

Smart Contract Reverted Error Code

Reverted Message
Reason
Resolve 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.

PreviousPerpetuals SpecsNextFutures Referral

Last updated 2 years ago

Was this helpful?