Skip to content
perpsplexity
BOTCHATSECURITY
Built onAFTERMATH
Error codes | Perpsplexity Docs

Introduction

OverviewFees

Products

Perp meme poolsLaunchSwapLeveraged tokens

Integrate

AddressesRouters and aggregatorsEventsError codes

Reference

Public APISecurityAudits

More

FAQ
Integrate

Error codes

What each abort code from the pools, their Config and the leveraged tokens means, and what to do about it.

A failed transaction reports a MoveAbort with the module and the code, for example MoveAbort in 1st command, abort code: 4, in '0x…::composite_pool::buy'. Read the module from the message and look the code up below. Both pool packages use the same codes.

Pools: composite_pool#

CodeNameMeaningWhat to do
1EBindingAn object does not belong to this pool: another Config, engine, market or receipt.Pass the pool's own objects. The integration kit resolves them.
2EStateNot allowed in the pool's current state, or buying is paused.Read the pool's state and pick the call for it (buy when live, buy_cash in the launch curve or in cash).
3EAmountZero or too small an amount, or a trade over the pool's cap per trade.Send a larger amount, or split a large one.
4EMinimumThe result is under your min_out.Re-quote and send again.
6EDeadlineThe deadline has passed or is more than 120 seconds ahead.Use now plus up to 120 s.
7EInvariantThe trade would break the pool's curve.Re-quote; the price moved inside the transaction.
8EEpochA dividend day is not due yet.Wait for the day to end.
9EFundingThe treasury step cannot run yet (its funding buffer is not ready or not covered), or there is no margin shortfall to cover.Nothing; the keeper handles it.
40EVirtualLockedAdding or removing liquidity on a pool that still has a launch curve.Liquidity can only be added to pools without one, such as adopted coins.

Receipts and locks#

ModuleCodeNameMeaning
locks1EDowngradeA lock can only be extended, never shortened.
locks2ELockedThe receipt is locked. Wait for the unlock, or sell with early = true (pays the top exit fee and gives up half the dividends earned).
position1EPoolThe receipts belong to different pools, or have different locks, and cannot be joined.
position2EAmountA partial amount that is zero or the whole receipt. Use the full sale for the whole receipt.
position3ELotsJoined receipts would hold more than 64 lots. Sell in two transactions.

Market hours: session_policy#

CodeNameMeaning
1ESessionClosedThe backing market is closed or paused, and the call would change the position. Buys wait for the market to reopen; a sale can still be paid from cash with hot_only = true.

Config: config#

CodeNameMeaning
1EInvalidA parameter outside its allowed range.
2EAuthorityThe AdminCap does not belong to this Config.
3ETimelockA Config change applied before its 48 hour notice ended, or none is pending.
4EVersionThe call went to an older package than the Config allows. Call the current package from Addresses.

Launch curve: curve#

CodeNameMeaning
1EInvalidA starting cap or seed outside the allowed range.
2EInsolventA sale larger than the real money in the curve.
3ENotBondedbond before the real money reached the starting cap. Wait for more buys.

Leveraged tokens: token#

See Leveraged tokens.

PreviousEventsNext Public API

On this page

Pools: composite_poolReceipts and locksMarket hours: session_policyConfig: configLaunch curve: curveLeveraged tokens: token