Uniswap V4 Liquidity

Implement and manage Uniswap v4 concentrated liquidity positions with PoolManager.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/cyotee/crane --skill uniswap-v4-liquidity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Uniswap V4 Liquidity
Source: https://github.com/cyotee/crane/tree/main/.claude/skills/uniswap-v4-liquidity
Command: npx skills add https://github.com/cyotee/crane --skill uniswap-v4-liquidity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Uniswap v4 liquidity management requires understanding complex position identification, minting and burning LP claims, and handling tokenized positions. This guidance helps developers navigate these challenges and implement reliable liquidity strategies.

Core Features & Use Cases

  • Understand how V4 positions differ from V3, including salt-based position identification and ERC6909 LP tokens.
  • Learn how to choose between direct positions, ERC6909 claims, or custom wrappers for LP tokens.
  • Explore practical workflows for adding, removing liquidity and collecting fees using PoolManager.modifyLiquidity and related structs.
  • Reference end-to-end patterns for minting/burning LP claims and integrating with ERC6909 tokens.

Quick Start

Use PoolManager.modifyLiquidity with a PoolKey and liquidityDelta to add or remove liquidity in a v4 position.

Frequently Asked Questions about Uniswap V4 Liquidity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Uniswap v4 concentrated liquidity positions in Solidity?

Manage Uniswap v4 liquidity by calling PoolManager.modifyLiquidity with a PoolKey and liquidityDelta. This handles adding or removing liquidity while supporting pre/post hooks for custom position logic.

What is the difference between Uniswap v3 and v4 liquidity positions?

Uniswap v4 liquidity positions differ from v3 by using salt-based identification and ERC6909 LP tokens. V4 also allows choosing between direct positions, ERC6909 claims, or custom wrappers for tokenized positions.

How do I mint and burn ERC6909 LP claims in a Uniswap v4 PoolManager?

Mint and burn ERC6909 LP claims by interacting with PoolManager workflows. These patterns tokenize concentrated liquidity positions using ERC6909 standards, enabling transferable claims that represent your liquidity.

Do I need to use salt for Uniswap v4 position identification?

Yes, salt-based position identification is required in Uniswap v4. It generates unique identifiers for positions within PoolManager, enabling precise tracking and modification of individual liquidity entries.

Can I use custom wrappers instead of ERC6909 tokens for Uniswap v4 LP positions?

Yes, you can choose between direct positions, ERC6909 claims, or custom wrappers for Uniswap v4 LP tokens. The choice depends on your specific liquidity management and tokenization requirements.

What parameters are needed for Uniswap v4 modifyLiquidity calls?

Uniswap v4 modifyLiquidity calls require a PoolKey, ModifyLiquidityParams, and a liquidityDelta. These parameters define the pool, position specifics via salt, and the amount of liquidity to add or remove.