Skip to content

feat: add public getters to BaselinePoolState and BaselineLiquidity#17

Merged
Will-Smith11 merged 2 commits intomainfrom
feat/public-getters-baseline
Mar 11, 2026
Merged

feat: add public getters to BaselinePoolState and BaselineLiquidity#17
Will-Smith11 merged 2 commits intomainfrom
feat/public-getters-baseline

Conversation

@Will-Smith11
Copy link
Copy Markdown
Contributor

Summary

  • Adds BaselinePoolState::liquidity() getter for read access to the underlying BaselineLiquidity
  • Adds scalar getters to BaselineLiquidity: tick_spacing(), start_tick(), start_sqrt_price(), start_liquidity()
  • Needed by cefi to decompose pool state into Copy-safe types for MDS v2 ring buffer transport

Test plan

  • cargo check -p uni-v4-structure passes
  • Downstream cefi build passes after pointing to this commit

🤖 Generated with Claude Code

Will-Smith11 and others added 2 commits March 11, 2026 17:25
Adds accessor methods needed by downstream consumers (cefi) to
decompose pool state for ring buffer transport:

- BaselinePoolState::liquidity() -> &BaselineLiquidity
- BaselineLiquidity::tick_spacing(), start_tick(), start_sqrt_price(), start_liquidity()

Co-Authored-By: Frankenstein <[email protected]>
Adds accessor methods needed by downstream consumers (cefi) to
decompose pool state for ring buffer transport:

- BaselinePoolState::liquidity() / liquidity_mut()
- BaselineLiquidity::tick_spacing(), start_tick(), start_sqrt_price(), start_liquidity()

Removes duplicate get_baseline_liquidity/get_baseline_liquidity_mut,
get_current_tick, get_tick_spacing in favor of the cleaner names.

Co-Authored-By: Frankenstein <[email protected]>
@Will-Smith11 Will-Smith11 force-pushed the feat/public-getters-baseline branch from e33b6e5 to b687b49 Compare March 11, 2026 17:30
@Will-Smith11 Will-Smith11 merged commit ddeada7 into main Mar 11, 2026
5 checks passed
@Will-Smith11 Will-Smith11 deleted the feat/public-getters-baseline branch March 11, 2026 17:34
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.

1 participant