Skip to content

Error Codes

If you receive numbered errors upon making calls to the Berps protocol, you can use the reference below to decipher the error.

SignatureError NameError Description
0x5863f789WrongParamsThe input parameters are incorrect or invalid.
0x82b42900UnauthorizedThe caller is not authorized to perform the action.
0x39c733d8InvalidExpoThe Pyth price has an invalid exponent value.
0xe7cd821cInvalidConfidenceThe Pyth price confidence interval is wider than the desired threshold.
0x9f9fb434DoneThe contract is in a "done" state and no further interactions are allowed.
0x9e87fac8PausedThe contract is paused and certain actions are not allowed.
0xa3b36525NoTradeThe specified trade does not exist.
0xe6803dc4NoLimitThe specified limit order does not exist.
0x3577cd46WrongLimitPriceThe provided limit price is incorrect or invalid.
0x7f527065WrongTpThe provided take profit price is incorrect or invalid.
0x62dd5ee3WrongSlThe provided stop loss price is incorrect or invalid.
0x506bf1a8InTimeoutThe action is performed within a timeout period.
0xfb30d03aPriceImpactTooHighThe price impact of a trade is higher than the allowed threshold.
0xa1c00d42PairNotListedThe specified trading pair is not listed.
0xa38355c0MaxTradesPerPairThe maximum number of trades per pair is exceeded.
0xb4503281AboveMaxPosThe position size is above the maximum allowed limit.
0x7061e4f8AboveMaxGroupCollateralThe collateral amount is above the maximum allowed limit for a group.
0x7061fe95LeverageIncorrectThe provided leverage is incorrect or invalid.
0x8d5543b1BelowMinPosThe position size is below the minimum allowed limit.
0x742087f6PriceNotHitThe target price is not hit for a limit order.
0x8199f5f3SlippageExceededThe slippage tolerance is exceeded for a trade.
0x40305e8dTpReachedThe take profit price is reached for a trade.
0xfa0789e0SlReachedThe stop loss price is reached for a trade.
0x0c26d69ePastExposureLimitsThe exposure limits are exceeded for a trade.
0x0b5f6bf0MarketClosedThe market is closed and trading is not allowed.
0xe528e11ePriceZeroThe price is zero, which is an invalid value.
0x423023f1PendingWithdrawalA withdrawal is already pending for an address.
0x4e00e1c0MoreThanWithdrawAmountThe requested withdrawal amount is more than the available balance.
0x3786fdd4NotEnoughAssetsThere are not enough assets available for the operation.
0xb2ac7c0cMaxDailyPnLThe maximum daily profit and loss limit is exceeded.
0x3b8698abMaxDepositThe deposit amount exceeds the maximum allowed limit.
0x3ae3d0cfMaxWithdrawThe withdrawal amount exceeds the maximum allowed limit.
0xf4d678b8InsufficientBalanceThe balance is insufficient for the operation.
0x085de625TooEarlyAn action is performed too early before the allowed time.
0x61104228InvalidReferrerThe provided referrer address is invalid.
0x7aabdfe3AlreadyReferredThe user has already been referred by someone.
0x8f6f8611ReferralCycleThere is a referral cycle detected, i.e., a user referring themselves.