| 6000 | NotApproved | Not approved | 调用方不是该指令的配置管理员。 | “只有池管理员才能执行此操作。“ |
| 6001 | InvalidUpdateConfigFlag | invalid update amm config flag | 管理员向 update_amm_config 传入了无法识别的 param 值。 | N/A — 仅限管理员路径。 |
| 6002 | AccountLack | Account lack | 交易中缺少必需的 remaining account(通常是 tick-array 或 oracle 扩展)。 | “内部错误:缺少账户,请刷新池数据。“ |
| 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-array 槽位 PDA。 | “内部错误:tick array 错误,请刷新池数据。“ |
| 6010 | InvalidTickArrayBoundary | Invalid tick array boundary | tick-array 索引存在偏差。 | “内部错误:tick-array 边界错误。“ |
| 6011 | SqrtPriceLimitOverflow | Square root price limit overflow | 调用方提供的 sqrt_price_limit 超出有效范围。 | “价格限制超出范围。“ |
| 6012 | SqrtPriceX64 | sqrt_price_x64 out of range | 池当前 sqrt 价格在 swap 中途偏离范围。 | “请重试 swap。“ |
| 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 | swap 指令中 amount 为零。 | “请输入大于零的金额。“ |
| 6021 | InvalidInputPoolVault | Input pool vault is invalid | swap 的 input-vault 账户与池记录的 vault 不匹配。 | “内部错误:input vault 错误,请刷新池数据。“ |
| 6022 | TooSmallInputOrOutputAmount | Swap input or output amount is too small | swap 计算结果四舍五入为零,通常因金额极小(dust)。 | “金额过小,无法在该池中执行 swap。“ |
| 6023 | NotEnoughTickArrayAccount | Not enough tick array account | 为 swap 范围提供的 tick-array remaining accounts 数量不足。 | “内部错误:tick-array 不足,请刷新池数据。“ |
| 6024 | InvalidFirstTickArrayAccount | Invalid first tick array account | 传入的第一个 tick-array 账户不覆盖当前 tick。 | “内部错误:首个 tick array 错误,请刷新池数据。“ |
| 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 与现有 mint 重复。 | N/A — 管理员路径。 |
| 6028 | ExceptRewardMint | The reward tokens must contain one of pool vault mint except the last reward | 在第 2 个槽位之前,奖励 mint 必须等于池 vault mint 之一。 | N/A — 管理员路径。 |
| 6029 | InvalidRewardInitParam | Invalid reward init param | 奖励排放的起止时间或每秒速率参数错误。 | N/A — 管理员路径。 |
| 6030 | InvalidRewardInputAccountNumber | Invalid collect reward input account number | 传给 CollectReward 的 remaining accounts 数量错误。 | “内部错误:账户数量错误,请刷新后重试。“ |
| 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 | swap 跨越了基础 bitmap 未覆盖的 tick 范围,需要扩展 bitmap 账户。 | “内部错误:缺少 tick-array 扩展,请刷新池数据。“ |
| 6036 | InsufficientLiquidityForDirection | Insufficient liquidity for this direction | swap 方向上的流动性不足。 | “该 swap 规模的流动性不足。“ |
| 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 传入的 collect_fee_on 值不在 {0, 1, 2} 范围内。 | “内部错误:无效的手续费模式。“ |
| 6046 | ZeroSqrtPrice | sqrt_price_x64 must be greater than 0 | CreateCustomizablePool(或其他接受自定义初始 sqrt 价格的路径)以 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 感知路径调用时未传入所需的 input/output mint 账户(用于验证扩展和转账手续费)。 | “内部错误:缺少 mint 账户,请刷新池数据。“ |
| 6050 | MissingTokenProgram2022 | Token-2022 program is required but not provided | 同上,缺少的是 SPL-Token-2022 程序账户。 | “内部错误:缺少 Token-2022 程序,请刷新后重试。” |