Solana error codes › Orca Whirlpools

Orca Whirlpools error codes

65 error codes defined by Orca Whirlpools (program ID whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc). In logs they appear as custom program error: 0x… after Program whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc failed.

Custom errors start at 6000 (0x1770). If a code is below 6000 and not listed here, see the Anchor framework errors.

Orca Whirlpools: AmountOutBelowMinimum

The swap would return less than the minimum output set in the transaction.

What to do: Retry with a fresh quote; a higher slippage allows a worse price.

HexCodeError
0x17706000InvalidEnum
Enum value could not be converted
0x17716001InvalidStartTick
Invalid start tick index provided.
0x17726002TickArrayExistInPool
Tick-array already exists in this whirlpool
0x17736003TickArrayIndexOutofBounds
Attempt to search for a tick-array failed
0x17746004InvalidTickSpacing
Tick-spacing is not supported
0x17756005ClosePositionNotEmpty
Position is not empty It cannot be closed
0x17766006DivideByZero
Unable to divide by zero
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17776007NumberCastError
Unable to cast number into BigInt
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17786008NumberDownCastError
Unable to down cast number
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17796009TickNotFound
Tick not found within tick array
0x177a6010InvalidTickIndex
Provided tick index is either out of bounds or uninitializable
0x177b6011SqrtPriceOutOfBounds
Provided sqrt price out of bounds
0x177c6012LiquidityZero
Liquidity amount must be greater than zero
0x177d6013LiquidityTooHigh
Liquidity amount must be less than i64::MAX
0x177e6014LiquidityOverflow
Liquidity overflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x177f6015LiquidityUnderflow
Liquidity underflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17806016LiquidityNetError
Tick liquidity net underflowed or overflowed
0x17816017TokenMaxExceeded
Exceeded token max
0x17826018TokenMinSubceeded
Did not meet token min
0x17836019MissingOrInvalidDelegate
Position token account has a missing or invalid delegate
0x17846020InvalidPositionTokenAmount
Position token amount must be 1
0x17856021InvalidTimestampConversion
Timestamp should be convertible from i64 to u64
0x17866022InvalidTimestamp
Timestamp should be greater than the last updated timestamp
0x17876023InvalidTickArraySequence
Invalid tick array sequence provided for instruction.
0x17886024InvalidTokenMintOrder
Token Mint in wrong order
0x17896025RewardNotInitialized
Reward not initialized
The name points to account state: an account was expected to exist (or not exist) already.
0x178a6026InvalidRewardIndex
Invalid reward index
0x178b6027RewardVaultAmountInsufficient
Reward vault requires amount to support emissions for at least one day
0x178c6028FeeRateMaxExceeded
Exceeded max fee rate
0x178d6029ProtocolFeeRateMaxExceeded
Exceeded max protocol fee rate
0x178e6030MultiplicationShiftRightOverflow
Multiplication with shift right overflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x178f6031MulDivOverflow
Muldiv overflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17906032MulDivInvalidInput
Invalid div_u256 input
0x17916033MultiplicationOverflow
Multiplication overflow
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17926034InvalidSqrtPriceLimitDirection
Provided SqrtPriceLimit not in the same direction as the swap.
0x17936035ZeroTradableAmount
There are no tradable amount to swap.
0x17946036AmountOutBelowMinimum
Amount out below minimum threshold
The swap would return less than the minimum output set in the transaction.
0x17956037AmountInAboveMaximum
Amount in above maximum threshold
0x17966038TickArraySequenceInvalidIndex
Invalid index for tick array sequence
0x17976039AmountCalcOverflow
Amount calculated overflows
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17986040AmountRemainingOverflow
Amount remaining overflows
The name points to a checked arithmetic failure inside the program, often from extreme amounts or an outdated client.
0x17996041InvalidIntermediaryMint
Invalid intermediary mint
0x179a6042DuplicateTwoHopPool
Duplicate two hop pool
0x179b6043InvalidBundleIndex
Bundle index is out of bounds
0x179c6044BundledPositionAlreadyOpened
Position has already been opened
0x179d6045BundledPositionAlreadyClosed
Position has already been closed
0x179e6046PositionBundleNotDeletable
Unable to delete PositionBundle with open positions
0x179f6047UnsupportedTokenMint
Token mint has unsupported attributes
0x17a06048RemainingAccountsInvalidSlice
Invalid remaining accounts
0x17a16049RemainingAccountsInsufficient
Insufficient remaining accounts
0x17a26050NoExtraAccountsForTransferHook
Unable to call transfer hook without extra accounts
0x17a36051IntermediateTokenAmountMismatch
Output and input amount mismatch
0x17a46052TransferFeeCalculationError
Transfer fee calculation failed
0x17a56053RemainingAccountsDuplicatedAccountsType
Same accounts type is provided more than once
0x17a66054FullRangeOnlyPool
This whirlpool only supports full-range positions
0x17a76055TooManySupplementalTickArrays
Too many supplemental tick arrays provided
0x17a86056DifferentWhirlpoolTickArrayAccount
TickArray account for different whirlpool provided
0x17a96057PartialFillError
Trade resulted in partial fill
0x17aa6058PositionNotLockable
Position is not lockable
0x17ab6059OperationNotAllowedOnLockedPosition
Operation not allowed on locked position
0x17ac6060SameTickRangeNotAllowed
Cannot reset position range with same tick range
0x17ad6061InvalidAdaptiveFeeConstants
Invalid adaptive fee constants
0x17ae6062InvalidFeeTierIndex
Invalid fee tier index
0x17af6063InvalidTradeEnableTimestamp
Invalid trade enable timestamp
0x17b06064TradeIsNotEnabled
Trade is not enabled yet
The name points to a feature or pool state that currently blocks this action.

Decode an error

Free, no sign-up, nothing to connect. Works offline from a bundled list; we do not look anything up on-chain.

Swapping a token you do not know? A free Rugsight check shows mint and freeze authority, Token-2022 extensions, holder concentration and liquidity before you trade.

Source: solana-idls@1.2.1. Data: program error lists from published IDLs (solana-idls 1.2.1, MIT) and the System, SPL Token, Token-2022 and Associated Token Account source code, snapshot 2026-11-16. Programs can be upgraded and add or change errors; the failing program's current IDL is the final word.