Skip to content

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
if collect_fee_mode == CollectFeeMode::Compounding {
CompoundingLiquidity::get_initial_pool_information(sqrt_price, liquidity)
} else {
ConcenstratedLiquidity::get_initial_pool_information(
Copy link
Collaborator

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

CHANGELOG.md Outdated
### Added

- Pool now will track reserves balances `(token_a_amount, token_b_amount)` if `pool.layout_version == 1`. For pool layout_version 0, operator can call the new endpoint `fix_pool_layout_version` to pump pool version.
- Add a new `collect_fee_mode (Compounding)`, in the new collect fee mode, fee will be collected in quote token, and a percentage of fee (configurable) will be added in reserves for compounding. In the new collect fee mode, the pool doesn't have concenstrated price range, instead following constant-product formula `token_a_amount * token_b_amount = constant`.
Copy link
Collaborator

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

[toolchain]
anchor_version = "0.31.0"
solana_version = "2.1.0"
solana_version = "2.3.13"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should update the CI to use the same version in .github/workflows/ci.yml:10

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

) -> Result<InitialPoolInformation> {
require!(
liquidity >= DEAD_LIQUIDITY,
liquidity > DEAD_LIQUIDITY,
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason of the change? Doesn't only DEAD_LIQUIDITY during pool initialization make sense too?

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