Skip to content

Commit 3ac0db2

Browse files
fix: function comment (#193)
* fix: function comment * remove unused comments --------- Co-authored-by: Andrew Nguyen <cuong.hv.dtvt@gmail.com>
1 parent a18fbc6 commit 3ac0db2

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

programs/cp-amm/src/liquidity_handler/concentrated_liquidity.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
#[cfg(test)]
22
use crate::params::swap::TradeDirection;
33
use crate::{
4-
// curve::{
5-
// get_delta_amount_a_unsigned, get_delta_amount_a_unsigned_unchecked,
6-
// get_delta_amount_b_unsigned, get_delta_amount_b_unsigned_unchecked,
7-
// get_next_sqrt_price_from_input, get_next_sqrt_price_from_output,
8-
// },
94
safe_math::SafeMath,
105
state::{SwapAmountFromInput, SwapAmountFromOutput},
116
u128x128_math::{mul_div_u256, Rounding},
12-
InitialPoolInformation,
13-
LiquidityHandler,
14-
PoolError,
7+
InitialPoolInformation, LiquidityHandler, PoolError,
158
};
169
use anchor_lang::prelude::*;
1710
use ruint::aliases::U256;
@@ -368,7 +361,7 @@ pub fn get_delta_amount_b_unsigned_unchecked(
368361
}
369362

370363
/// Gets the next sqrt price given an input amount of token_a or token_b
371-
/// Throws if price or liquidity are 0, or if the next price is out of bounds
364+
/// Throws if price or liquidity are 0, or if the next price overflow q64.64
372365
pub fn get_next_sqrt_price_from_input(
373366
sqrt_price: u128,
374367
liquidity: u128,
@@ -391,7 +384,7 @@ pub fn get_next_sqrt_price_from_input(
391384
}
392385

393386
/// Gets the next sqrt price given an output amount of token_a or token_b
394-
/// Throws if price or liquidity are 0, or if the next price is out of bounds
387+
/// Throws if price or liquidity are 0, or if the next price overflow q64.64
395388
pub fn get_next_sqrt_price_from_output(
396389
sqrt_price: u128,
397390
liquidity: u128,

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"esModuleInterop": true,
99
"resolveJsonModule": true,
1010
"noEmit": true,
11-
"skipLibCheck": true
11+
"skipLibCheck": true,
12+
"strict": false
1213
}
1314
}

0 commit comments

Comments
 (0)