Error codes / 0x1798
custom program error: 0x1798
Custom(6040) · 0x1798 · used by 16 programs we know
This number has no meaning on its own. Each Solana program numbers its own errors, so 0x1798 is BuySlippageBelowMinBaseAmountOut in PumpSwap AMM but BuyNotEnoughSolToCoverRent in Pump.fun Bonding Curve. The meaning that applies is the one from the program that actually failed: the first Program … failed line in the transaction's logs. That is often not the program you called, but one it invoked, or a guard instruction your wallet added.
Don't guess: paste the transaction
TxWhy reads the logs, finds the program and the exact instruction that raised 0x1798, explains it, and rebuilds the transaction when the cause is one it can fix.
What 0x1798 means, by program
- BuySlippageBelowMinBaseAmountOutPumpSwap AMM
buy: slippage - would buy less tokens than expected min_base_amount_out
- BuyNotEnoughSolToCoverRentPump.fun Bonding Curve
Buy: Not enough SOL to cover for rent exemption.
- AmountRemainingOverflowOrca Whirlpools
An arithmetic operation inside the program went out of range. In exchanges this usually means the amount, price or liquidity at that moment produced a number the pool cannot represent, often a trade far larger than the pool can absorb.
- InvalidPositionWidthMeteora DLMM
Invalid position width
- InvalidFundingProfitabilityDrift V2
AMM funding out of bounds pnl
- CannotClaimSwapFeeHeaven DEX
Cannot claim swap fee
- WrongProgramJupiter DCA
Did not call this program's initiate_flash_fill
- PartialPriceMismatchMetaplex Auction House
Calculated partial price does not not partial price that was provided.
- IncorrectRemainingAccountsLenMetaplex Candy Machine
The number of remaining accounts passed in doesn't match the Candy Machine settings
- WrongGatingDateMetaplex Fixed Price Sale
Wrong gating date send
- AmountNotPegMeteora AMM
Token amount is not 1:1
- InvalidPoolCreatorAuthorityMeteora CP AMM (DAMM V2)
Invalid pool creator authority
- MigrationFeeHasBeenWithdrawMeteora Dynamic Bonding Curve
Migration fee has been withdraw
- CommissionAccountIsNoneOKX DEX Aggregation Router V2
Commission account is none
- DisabledOraclePegOpenBook V2
Oracle peg orders are not enabled for this market
- MissingTickArrayBitmapExtensionAccountRaydium AMM V3 (CLMM)
Missing tickarray bitmap extension account