Skip to main content
On-chain contract calls can revert with a 4-byte error selector (error signature). The table below maps each selector to a human-readable message.
SignatureMessage
0x00eb943eMargin to extract exceeds PnL
0x01735734Cannot open opposite side order while position exists
0x0313b285Market already exists
0x0428f2afPosition must be filled to reduce
0x05baf701Margin to reduce exceeds initial margin
0x0a62b8f3No position found
0x0ae3681cCannot add selectors to zero address
0x0dfa289aInvalid side
0x0e7186fbOracle data required
0x11d7116cFill size exceeds open order position size
0x16d402d1Only fully filled orders can be added to
0x192105d7Initialization function reverted
0x21511763Batch array lengths must be equal
0x21c35dd1Reduce order does not belong to position
0x25e2f413Order must be pending or partially filled to cancel
0x2683d346Total reduce size exceeds available size
0x29d842c0Only trader can cancel their order
0x2b870c24Maximum leverage must exceed minimum leverage
0x358d9d1aCannot replace function with the same function from the same facet
0x3728b83dInvalid amount
0x39060dc5Reduce order must be in terminal state
0x3e43f616Margin to extract exceeds available margin
0x3ee5aeb5Reentrancy guard reentrant call
0x4c3cbf04Not proposed protocol admin
0x4d2acfe8Trade size must be multiple of lot size
0x4e23d035Index out of bounds
0x520300daCannot replace immutable function
0x5274afe7SafeERC20 operation failed
0x5416eb98Function not found
0x54282104Position in liquidation
0x5c86708fMargin operations not allowed on pending position
0x5c918450Asymmetry detected with partial reduce order
0x5dc35903Initial margin must be greater than zero
0x64b624cbMerge would exceed maximum leverage
0x651a6feePosition must be partially or fully filled
0x69b1189fOnly fully filled orders can be extracted
0x6fafeb08Cannot remove immutable function
0x741df939Market is paused
0x7479f939Cannot replace function that does not exist
0x76028bdfReduce size exceeds available size
0x7a08a22dCannot remove function that does not exist
0x7b67157cMinimum leverage too low
0x7e86a579Maximum pending reduce orders exceeded
0x7fe9a41eIncorrect facet cut action
0x806c8697Lot size cannot be zero
0x80e54607Market has open positions
0x81894449Not protocol admin
0x82b42900Unauthorized
0x84540995Facet has no code or has been destroyed
0x8568428eReduce size must be greater than zero
0x85de96b8Invalid oracle price data
0x89af5fc3Invalid market ID hash
0x919834b9No bytecode at address
0x91f63592Queue overflow
0x93a4b908Reduce order size exceeds open order position size
0x94280d62Invalid ERC20 spender
0x96c6fd1eInvalid ERC20 sender
0xb036286eFill size exceeds remaining reduce order size
0xb0cfa447Market does not exist
0xb113638aValue does not exist
0xb3215542Margin extraction would exceed maximum leverage
0xb419e811Trade size out of allowed range
0xb50b6422Merged position would be underwater
0xb6f63d65Empty name not allowed
0xbb33e6acValue already exists
0xbe543a82Only trader can reduce their order
0xc541a95bOpen order has zero size, cannot reduce
0xc80b8834Zero address not allowed
0xc8444e18Insurance fund has existing position
0xcb64ae8dLeverage must be whole number
0xcbd5b1d2Margin to add must be greater than zero
0xccd52fbcPointer out of bounds
0xcd98a96fCannot replace functions from facet with zero address
0xd060c572Open order must be partially or fully filled
0xd091bc81Remove facet address must be zero address
0xd8eadcb5Only trader can update their order
0xda5f1a6aLeverage out of allowed range
0xe1140addFilled size overflow
0xe450d38cInsufficient ERC20 balance
0xe570110fSafeERC20 failed to decrease allowance
0xe602df05Invalid ERC20 approver
0xe672ee91Fill size must be greater than zero
0xe6e66ac8Order must be pending to update
0xe767f91fNo selectors provided for facet for cut
0xeb6ba048No selectors given to add
0xebbf5d07Cannot add function to diamond that already exists
0xec442f05Invalid ERC20 receiver
0xed732d0cTree is full
0xefac47f8Market name cannot be updated
0xf4d678b8Insufficient balance
0xf9b42874Price oracle not set
0xfb57fb37Margin addition would overflow
0xfb8f41b2Insufficient ERC20 allowance
0xff4127cbNot contract owner