PositionManager full support; PoolManager full support; contracts-related methods naming improvements.#426
Merged
liquid-8 merged 2 commits intouniswap-python:dev/v4-finfrom Mar 17, 2026
Conversation
…ated methods naming improvement.
Greptile SummaryThis PR adds full PositionManager write methods, full PoolManager read/write methods, and renames existing contract-related methods with Key concerns:
Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User as EOA / Python client
participant PM as PositionManager
participant PoolMgr as PoolManager
Note over User, PoolMgr: Correct flow — user calls unlock on PoolManager
User->>PoolMgr: unlock_pool_manager(data)
PoolMgr->>PM: unlockCallback(data)
PM-->>PoolMgr: (callback result)
PoolMgr-->>User: tx receipt
Note over User, PoolMgr: ❌ Wrong — unlock_callback_position_manager wraps the callback directly
User->>PM: unlockCallback(data)
PM--xUser: revert (msg.sender != poolManager)
Note over User, PoolMgr: Modify liquidity flow
User->>PM: modify_liquidities_position_manager(unlock_data, deadline, value)
PM->>PoolMgr: unlock(unlock_data)
PoolMgr->>PM: unlockCallback(unlock_data)
PM->>PoolMgr: modifyLiquidity(poolKey, params, hookData)
PM-->>User: tx receipt
Last reviewed commit: 3492c3f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.