From b21a17160570a9d5918773d1a261283ec2e0340c Mon Sep 17 00:00:00 2001 From: codewithgun Date: Fri, 27 Feb 2026 13:45:15 +0800 Subject: [PATCH 1/2] fix: function comment --- .../cp-amm/src/liquidity_handler/concentrated_liquidity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs b/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs index 3897c7f9..253c0637 100644 --- a/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs +++ b/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs @@ -368,7 +368,7 @@ pub fn get_delta_amount_b_unsigned_unchecked( } /// Gets the next sqrt price given an input amount of token_a or token_b -/// Throws if price or liquidity are 0, or if the next price is out of bounds +/// Throws if price or liquidity are 0, or if the next price overflow q64.64 pub fn get_next_sqrt_price_from_input( sqrt_price: u128, liquidity: u128, @@ -387,7 +387,7 @@ pub fn get_next_sqrt_price_from_input( } /// Gets the next sqrt price given an output amount of token_a or token_b -/// Throws if price or liquidity are 0, or if the next price is out of bounds +/// Throws if price or liquidity are 0, or if the next price overflow q64.64 pub fn get_next_sqrt_price_from_output( sqrt_price: u128, liquidity: u128, From 3bbf95eac4a92651d7ad9c1db8ea013649077266 Mon Sep 17 00:00:00 2001 From: Andrew Nguyen Date: Mon, 2 Mar 2026 09:07:34 +0700 Subject: [PATCH 2/2] remove unused comments --- .../src/liquidity_handler/concentrated_liquidity.rs | 9 +-------- tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs b/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs index 253c0637..0d275019 100644 --- a/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs +++ b/programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs @@ -1,17 +1,10 @@ #[cfg(test)] use crate::params::swap::TradeDirection; use crate::{ - // curve::{ - // get_delta_amount_a_unsigned, get_delta_amount_a_unsigned_unchecked, - // get_delta_amount_b_unsigned, get_delta_amount_b_unsigned_unchecked, - // get_next_sqrt_price_from_input, get_next_sqrt_price_from_output, - // }, safe_math::SafeMath, state::{SwapAmountFromInput, SwapAmountFromOutput}, u128x128_math::{mul_div_u256, Rounding}, - InitialPoolInformation, - LiquidityHandler, - PoolError, + InitialPoolInformation, LiquidityHandler, PoolError, }; use anchor_lang::prelude::*; use ruint::aliases::U256; diff --git a/tsconfig.json b/tsconfig.json index b05883ec..281ebf8a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "esModuleInterop": true, "resolveJsonModule": true, "noEmit": true, - "skipLibCheck": true + "skipLibCheck": true, + "strict": false } }