| 6000 | NotApproved | Not approved | 呼叫者不是此指令的設定管理員;或 (OpenLimitOrder) 輸入/輸出代幣帳戶被凍結或資金池已停用交換/限價單;或 (ClosePosition,凍結路徑) 提供的剩餘帳戶不是 personal_position.pool_id。 | 「只有資金池管理員可以執行此操作。」/ 「此代幣帳戶已凍結 — 在下單前解凍。」/ 「內部:位置資金池帳戶錯誤。」 |
| 6001 | InvalidUpdateConfigFlag | invalid update amm config flag | 管理員向 update_amm_config 傳遞了無法識別的 param 值。 | N/A — 僅限管理員路徑。 |
| 6002 | AccountLack | Account lack | 交易中缺少必要的剩餘帳戶(通常是 tick 陣列或預言機擴充);或 ClosePosition 在沒有資金池作為第一個剩餘帳戶的情況下關閉凍結的 NFT。 | 「內部:缺少帳戶 — 重新整理資金池資料或更新位置關閉建構器。」 |
| 6003 | ClosePositionErr | Remove liquidity, collect fees owed and reward then you can close position account | 嘗試關閉仍有流動性、未收取費用或未收取獎勵的位置。 | 「在關閉位置前提取所有流動性並領取費用/獎勵。」 |
| 6004 | InvalidTickIndex | Tick out of range | tick_lower 或 tick_upper 超出 [-443636, 443636] 範圍。 | 「此資金池的價格範圍超出界限。」 |
| 6005 | TickInvalidOrder | The lower tick must be below the upper tick | tick_lower >= tick_upper。 | 「下限價格必須低於上限價格。」 |
| 6006 | TickLowerOverflow | The tick must be greater, or equal to the minimum tick(-443636) | 下限 tick 下溢。 | 「下限價格過低。」 |
| 6007 | TickUpperOverflow | The tick must be lesser than, or equal to the maximum tick(443636) | 上限 tick 上溢。 | 「上限價格過高。」 |
| 6008 | TickAndSpacingNotMatch | tick % tick_spacing must be zero | 提交的 tick 不是資金池 tick_spacing 的倍數。 | 「將價格對齊到最近的有效增量。」 |
| 6009 | InvalidTickArray | Invalid tick array account | 為 tick 陣列槽位傳遞了錯誤的 PDA。 | 「內部:tick 陣列錯誤 — 重新整理資金池資料。」 |
| 6010 | InvalidTickArrayBoundary | Invalid tick array boundary | tick 陣列索引中的差一錯誤。 | 「內部:tick 陣列邊界錯誤。」 |
| 6011 | SqrtPriceLimitOverflow | Square root price limit overflow | 呼叫者提供的 sqrt_price_limit 超出有效範圍。 | 「價格限制超出範圍。」 |
| 6012 | SqrtPriceX64 | sqrt_price_x64 out of range | 資金池的目前平方根價格在交換中途漂移超出範圍。 | 「重試交換。」 |
| 6013 | LiquiditySubValueErr | Liquidity sub delta L must be smaller than before | 減少流動性時的內部不變量違反。 | 「內部:流動性會計錯誤。」 |
| 6014 | LiquidityAddValueErr | Liquidity add delta L must be greater, or equal to before | 增加流動性時的內部不變量違反。 | 「內部:流動性會計錯誤。」 |
| 6015 | ForbidBothZeroForSupplyLiquidity | Both token amount must not be zero while supply liquidity | 增加流動性呼叫時 amount_0_max 和 amount_1_max 都為零。 | 「至少提供一種代幣。」 |
| 6016 | LiquidityInsufficient | Liquidity insufficient | 位置沒有足夠的流動性來滿足提取。 | 「提取金額超過位置流動性。」 |
| 6017 | PriceSlippageCheck | Price slippage check | 執行價格未通過呼叫者的滑點保護。 | 「價格超過你的滑點容限。增加滑點或重試。」 |
| 6018 | TooLittleOutputReceived | Too little output received | SwapBaseInput:輸出金額低於 other_amount_threshold。 | 「滑點超出 — 未達到最小輸出。」 |
| 6019 | TooMuchInputPaid | Too much input paid | SwapBaseOutput:輸入金額超過 other_amount_threshold。 | 「滑點超出 — 超過最大輸入。」 |
| 6020 | ZeroAmountSpecified | Swap special amount can not be zero | 交換指令上的零 amount。 | 「輸入大於零的金額。」 |
| 6021 | InvalidInputPoolVault | Input pool vault is invalid | 交換的輸入金庫帳戶與資金池記錄的金庫不符。 | 「內部:輸入金庫錯誤 — 重新整理資金池資料。」 |
| 6022 | TooSmallInputOrOutputAmount | Swap input or output amount is too small | 交換數學四捨五入為零,通常是非常小的塵埃。 | 「金額太小,無法在此資金池中交換。」 |
| 6023 | NotEnoughTickArrayAccount | Not enough tick array account | 為交換範圍提供的 tick 陣列剩餘帳戶不足。 | 「內部:tick 陣列不足 — 重新整理資金池資料。」 |
| 6024 | InvalidFirstTickArrayAccount | Invalid first tick array account | 傳遞的第一個 tick 陣列帳戶不涵蓋目前 tick。 | 「內部:第一個 tick 陣列錯誤 — 重新整理資金池資料。」 |
| 6025 | InvalidRewardIndex | Invalid reward index | reward_index 超出 [0, 2]。 | N/A — 管理員路徑。 |
| 6026 | FullRewardInfo | The init reward token reach to the max | 資金池已設定最大 (3) 個獎勵 mint。 | N/A — 管理員路徑。 |
| 6027 | RewardTokenAlreadyInUse | The init reward token already in use | 獎勵 mint 與現有的重複。 | N/A — 管理員路徑。 |
| 6028 | ExceptRewardMint | The reward tokens must contain one of pool vault mint except the last reward | 預槽位 2,獎勵 mint 必須等於資金池金庫 mint 之一。 | N/A — 管理員路徑。 |
| 6029 | InvalidRewardInitParam | Invalid reward init param | 不良的發放開始/結束時間或每秒速率。 | N/A — 管理員路徑。 |
| 6030 | InvalidRewardInputAccountNumber | Invalid collect reward input account number | 傳遞給 CollectReward 的剩餘帳戶數量錯誤。 | 「內部:帳戶計數錯誤 — 重新整理並重試。」 |
| 6031 | InvalidRewardPeriod | Invalid reward period | 獎勵發放期間無效(end <= start,零持續時間)。 | N/A — 管理員路徑。 |
| 6032 | NotApproveUpdateRewardEmissions | Modification of emissions is allowed within 72 hours from the end of the previous cycle | 管理員嘗試在週期邊界周圍的 72 小時視窗外修改發放。 | N/A — 管理員路徑。 |
| 6033 | UnInitializedRewardInfo | uninitialized reward info | 獎勵槽位未初始化但被參考。 | N/A — 管理員路徑。 |
| 6034 | NotSupportMint | Not support token_2022 mint extension | CLMM 遇到無法處理的 Token-2022 擴充。 | 「此代幣具有 Raydium CLMM 不支援的擴充。」 |
| 6035 | MissingTickArrayBitmapExtensionAccount | Missing tickarray bitmap extension account | 交換跨越基礎位圖未涵蓋的 tick 範圍;需要擴充位圖帳戶。 | 「內部:缺少 tick 陣列擴充 — 重新整理資金池資料。」 |
| 6036 | InsufficientLiquidityForDirection | Insufficient liquidity for this direction | 交換方向上沒有足夠的流動性。 | 「此交換大小的流動性不足。」 |
| 6037 | MaxTokenOverflow | Max token overflow | 輸入/輸出金額超過 u64。 | 「此資金池的金額過大。」 |
| 6038 | CalculateOverflow | Calculate overflow | 費用/流動性算術上溢。 | 「此資金池的金額過大。」 |
| 6039 | TransferFeeCalculateNotMatch | TransferFee calculate not match | Token-2022 轉帳費用觀察到的金額與預期不符。 | 「代幣轉帳費用在交易中途變更。重試。」 |
| 6040 | OrderAlreadyFilled | Order already fully filled, cannot modify | 在未填充部分為零的訂單上呼叫 IncreaseLimitOrder / DecreaseLimitOrder。 | 「此限價單已填充 — 結算以接收輸出。」 |
| 6041 | InvalidOrderPhase | Invalid order phase | 變更訂單,其 FIFO 隊列階段不再與 tick 的目前隊列相符。 | 「無法在訂單的目前狀態下執行此操作。」 |
| 6042 | InvalidLimitOrderAmount | Invalid limit order amount | 訂單輸入在開啟/增加/減少時低於資金池的最小值(或零)。 | 「訂單大小低於資金池的最小值。」 |
| 6043 | OrderPhaseSaturated | Tick order phase saturated | tick 上隊列的 order_phase 計數器已飽和;在現有隊列結算並滾動之前,無法在該 tick 開啟進一步的訂單。 | 「此價格的活躍訂單過多;嘗試附近的 tick 或等待訂單結算。」 |
| 6044 | InvalidDynamicFeeConfigParams | Invalid dynamic fee config params | CreateDynamicFeeConfig / UpdateDynamicFeeConfig 被拒絕;或 CreateCustomizablePool 在沒有有效設定的情況下啟用了動態費用。 | N/A 在管理員路徑;「動態費用設定無效」在使用者路徑。 |
| 6045 | InvalidFeeOn | Invalid fee on which token (must be 0, 1, or 2) | CreateCustomizablePool 傳遞了超出 {0, 1, 2} 的 collect_fee_on 值。 | 「內部:無效的費用模式。」 |
| 6046 | ZeroSqrtPrice | sqrt_price_x64 must be greater than 0 | CreateCustomizablePool(或另一個接受可自訂初始平方根價格的路徑)以 sqrt_price_x64 == 0 呼叫。 | 「初始價格必須大於零。」 |
| 6047 | ZeroLiquidity | liquidity must be greater than 0 | 流動性提供路徑以 liquidity == 0 和無補償金額呼叫。 | 「流動性金額必須大於零。」 |
| 6048 | MissingBaseFlag | base_flag is required when liquidity is zero | 按金額開啟位置路徑計算 liquidity == 0,呼叫者未提供 base_flag 來區分哪一側是基礎。 | 「提供非零流動性或指定哪個代幣是基礎。」 |
| 6049 | MissingMintAccount | Mint account is required but not provided | 呼叫了 Token-2022 感知路徑,但未提供驗證擴充和轉帳費用所需的輸入/輸出 mint 帳戶。 | 「內部:缺少 mint 帳戶 — 重新整理資金池資料。」 |
| 6050 | MissingTokenProgram2022 | Token-2022 program is required but not provided | 與上述相同,適用於 SPL-Token-2022 程式帳戶。 | 「內部:缺少 Token-2022 程式 — 重新整理並重試。」 |
| 6051 | InvalidTickArrayBitmapExtensionAccount | TickArrayBitmapExtension account does not belong to this pool | 提供的位圖擴充帳戶不是為此資金池衍生的帳戶。在交換路徑停止按交換呼叫 find_program_address 並開始改為按 pool_id 繫結擴充時新增。 | 「內部:tick 陣列擴充錯誤 — 重新整理資金池資料。」 |
| 6052 | LamportsCalculateError | Lamports calculate error | CollectExcessLamports 掃過包裝的 SOL 金庫,SyncNative → UnwrapLamports 往返未將包裝代幣餘額留在其開始位置。由 2026-09-30 升級附加;代碼 6000–6051 保持不變。 | N/A — 僅限管理員路徑。 |