Skip to main content

Liquidity & Pool Errors (120–159)

These errors occur during pool initialization, liquidity provision, withdrawals, and order matching.


Error Table

CodeNameMessageCauseSolution
120InsufficientLiquidityInsufficient liquidityPool lacks liquidity to match tradeReduce trade size or wait
121PoolNotFoundPool not foundPool account missingInitialize pool first
122InvalidPoolStateInvalid pool statePool in incorrect stateEnsure pool is active
123PoolMismatchPool mismatchWrong pool for pairVerify pool PDA
124NoLiquidityPoolsNo liquidity pools availableNo pools configuredAdmin must create pools
125MinimumLiquidityNotMetMinimum liquidity not metBelow required thresholdWait for LP deposits
126PoolSizeExceededPool size exceededPool at max capacityWait for capacity
127AmountTooSmallAmount less than minimumBelow pool minimumIncrease amount
128PoolAlreadyExistsPool already existsPDA already initializedUse existing pool
129InvalidPoolTypeInvalid pool typeNot public/privateSpecify valid type
130InvalidPoolConfigurationInvalid pool configurationInvalid init parametersCheck config values
131PoolRejectingOrdersPool rejecting ordersisRejectOrder=truePool not accepting orders
132InsufficientLPTokensInsufficient LP tokensNot enough LP sharesReduce withdrawal
133MakerNotFoundMaker not foundMaker not registeredAdd liquidity first
134MakerAlreadyExistsMaker already existsMaker already registeredMaker already active
135UnauthorizedMakerUnauthorized makerNot allowed in private poolUse authorized maker
136PoolRefusedPool refusedPool refused matchAdjust order or pool
137InvalidDecimalsInvalid decimalsToken decimals mismatchVerify token decimals
138InvalidPoolAddressInvalid pool addressPDA mismatchVerify derivation
139EscrowAccountNotAllowedEscrow account not allowedOperation not permittedUse correct account
150InvalidPoolModeInvalid pool modeMode invalidUse public/private
151InsufficientSharesInsufficient sharesLP shares too lowWithdraw less
152RemainingAmountTooSmallRemaining amount too smallResidual balance too smallWithdraw all or less
153NoMakerAvailableNo maker availableNo maker to matchWait for liquidity
154TooManyOrdersToo many ordersExceeds max order countClose existing orders
155EscrowAccountNotFoundEscrow account not foundEscrow missingInitialize escrow first

Characteristics

  • Enforced during liquidity add/remove flows
  • Enforced during pool matching
  • Protect pool capacity and share accounting
  • Validate correct pool PDAs and modes
  • Enforce maker authorization in private pools