Skip to content

Compounding liquidity#190

Merged
andrewsource147 merged 4 commits intorelease_0.2.0from
compounding_liquidity
Feb 13, 2026
Merged

Compounding liquidity#190
andrewsource147 merged 4 commits intorelease_0.2.0from
compounding_liquidity

Conversation

@andrewsource147
Copy link
Contributor

@andrewsource147 andrewsource147 commented Feb 11, 2026

No description provided.

@andrewsource147 andrewsource147 changed the title feat Compounding liquidity Feb 11, 2026
Copy link
Contributor

@codewithgun codewithgun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1,4 +1,5 @@
pub mod test_calculate_init_sqrt_price;
pub mod test_calculate_compounding_liquidity;
pub mod test_calculate_concenstrated_initial_sqrt_price;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in the file name. should be concenstrated -> concentrated

Copy link
Collaborator

@bangyro bangyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comment. rest looks good.

// => s ^ 2 + s * (-pa + x * y) - y = 0
// s = [(pa - xy) + √((xy - pa)² + 4y)]/2, // pa: min_sqrt_price, pb: max_sqrt_price
// s = [(pa - b << 128 / a / pb) + sqrt((b << 128 / a / pb - pa)² + 4 * b << 128 / a)] / 2
pub fn calculate_concenstrated_initial_sqrt_price(
Copy link
Collaborator

@bangyro bangyro Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo should be concenstrated -> concentrated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@andrewsource147 andrewsource147 merged commit d9b6295 into release_0.2.0 Feb 13, 2026
6 checks passed
@andrewsource147 andrewsource147 deleted the compounding_liquidity branch February 13, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants