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# Code Name Meaning What to do 1 EBindingAn object does not belong to this pool: another Config, engine, market or receipt. Pass the pool's own objects. The integration kit resolves them. 2 EStateNot 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). 3 EAmountZero or too small an amount, or a trade over the pool's cap per trade. Send a larger amount, or split a large one. 4 EMinimumThe result is under your min_out. Re-quote and send again. 6 EDeadlineThe deadline has passed or is more than 120 seconds ahead. Use now plus up to 120 s. 7 EInvariantThe trade would break the pool's curve. Re-quote; the price moved inside the transaction. 8 EEpochA dividend day is not due yet. Wait for the day to end. 9 EFundingThe 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. 40 EVirtualLockedAdding 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# Module Code Name Meaning locks1 EDowngradeA lock can only be extended, never shortened. locks2 ELockedThe receipt is locked. Wait for the unlock, or sell with early = true (pays the top exit fee and gives up half the dividends earned). position1 EPoolThe receipts belong to different pools, or have different locks, and cannot be joined. position2 EAmountA partial amount that is zero or the whole receipt. Use the full sale for the whole receipt. position3 ELotsJoined receipts would hold more than 64 lots. Sell in two transactions.
Market hours: session_policy# Code Name Meaning 1 ESessionClosedThe 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# Code Name Meaning 1 EInvalidA parameter outside its allowed range. 2 EAuthorityThe AdminCap does not belong to this Config. 3 ETimelockA Config change applied before its 48 hour notice ended, or none is pending. 4 EVersionThe call went to an older package than the Config allows. Call the current package from Addresses .
Launch curve: curve# Code Name Meaning 1 EInvalidA starting cap or seed outside the allowed range. 2 EInsolventA sale larger than the real money in the curve. 3 ENotBondedbond before the real money reached the starting cap. Wait for more buys.
Leveraged tokens: token# See Leveraged tokens .