Skip to content

Instantly share code, notes, and snippets.

@mgild
Last active May 19, 2025 12:09
Show Gist options
  • Save mgild/3868965347fa1718bf8b5597c7d8444a to your computer and use it in GitHub Desktop.
Save mgild/3868965347fa1718bf8b5597c7d8444a to your computer and use it in GitHub Desktop.
initialize_position_by_operator ix_data: lower bind id: 9113, width 15
Bin array keys: 15CxRvzZyfFzCTNbnXgtMX1ivHvwdWi7UetFhgLFb6v - 6ocY6jLKPrfyxmN8Krzmc65dhtfyZhrGTxxsMmxkaCgc
add_liquidity_by_strategy Params: AddLiquidityByStrategyIxArgs { liquidity_parameter: LiquidityParameterByStrategy { amount_x: 33763532, amount_y: 11185204144, active_id: 9126, max_active_bin_slippage: 3, strategy_parameters: StrategyParameters { min_bin_id: 9125, max_bin_id: 9128, strategy_type: SpotBalanced, parameteres: [] } } }
Liquidity transaction simulation result:
Error: Some(InstructionError(4, Custom(6008)))
Logs:
Program ComputeBudget111111111111111111111111111111 invoke [1]
Program ComputeBudget111111111111111111111111111111 success
Program 11111111111111111111111111111111 invoke [1]
Program 11111111111111111111111111111111 success
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [1]
Program log: Instruction: SyncNative
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3045 of 605700 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo invoke [1]
Program log: Instruction: InitializePosition
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo invoke [2]
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo consumed 2135 of 589929 compute units
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo success
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo consumed 15456 of 602655 compute units
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo success
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo invoke [1]
Program log: Instruction: AddLiquidityByStrategy
Program log: AnchorError thrown in programs/lb_clmm/src/state/position.rs:187. Error Code: InvalidPosition. Error Number: 6008. Error Message: Invalid position.
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo consumed 70981 of 587199 compute units
Program LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo failed: custom program error: 0x1778
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment