Skip to content

Conversation

@ASingaley
Copy link

PR Description

Summary

Introduces new mapping structures to LiquidityManagerV2 for improved pool management, user tracking, and token support.

What's Changed

  • Added Mappings Section Header for clarity
  • Introduced:
    • poolInfo → store pool details by token pair
    • userPositions → track liquidity positions per user
    • supportedTokens → define which tokens can be used in liquidity provision
    • poolKeys → simplify access to pool identifiers
    • tokenPairToPoolId → map token pairs to pool IDs
  • Applied forge fmt for consistent formatting

Why

  • Improves organization and readability of contract state.
  • Provides essential structures for managing liquidity pools and user positions.
  • Lays groundwork for future pool operations and validations.

Impact

  • Expands LiquidityManagerV2 functionality.
  • No breaking changes, safe to merge.

@Neros0 Neros0 self-requested a review September 15, 2025 02:17
@Neros0 Neros0 added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 15, 2025
@Neros0 Neros0 merged commit 1a86e48 into CraftMeme:main Sep 15, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants