Error codes / Meteora CP AMM (DAMM V2)
InsufficientLiquidity
Meteora CP AMM (DAMM V2) · Custom(6023) · 0x1787
custom program error: 0x1787
What it means
The pool does not have enough liquidity left to fill a trade of this size. On a launch pool (a bonding curve such as Meteora DBC) it means the buy is larger than what is left before the pool graduates, and the program refuses the whole swap rather than fill part of it.
The program's own message: “Insufficient liquidity”
What to do
Trade a smaller amount. On Meteora DBC, buy at most what is left before graduation, or use swap2 in partial-fill mode, which buys what is left and returns the rest. Paste the failed transaction into TxWhy to see the exact room left.
Have the transaction that failed with this?
Paste its signature. TxWhy shows the exact instruction and inner call that raised the error, and rebuilds the transaction when the cause is one it can fix (compute limit, expired blockhash, priority fee, a stale swap quote or a moved limit).
Code 6023 means something else in other programs
Custom codes are private to each program. Check which program actually raised it: it is the innermost failed call, not necessarily the program you called.
- OperatorAlreadyAddedBoop
- PriceBandsBreachedDrift V2
- InvalidPostFeeAmountHeaven DEX
- AddressMismatchJupiter DCA
- InvalidBasisPointsMagic Eden V2
- InvalidBasisPointsMetaplex Auction House
- AlreadyUnverifiedMetaplex Bubblegum
- InvalidStringMetaplex Candy Machine
- FunderIsInvalidMetaplex Fixed Price Sale
- RemoveSharesMustBeZeroMetaplex Hydra
- MisMatchedCurveMeteora AMM
- RewardUninitializedMeteora DLMM