Uniswap V3 Factory

Compute Uniswap V3 pool addresses and configure fee tiers deterministically.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/cyotee/uniswap-V3-skill --skill uniswap-v3-factory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Uniswap V3 Factory
Source: https://github.com/cyotee/uniswap-V3-skill/tree/main/.opencode/skills/uniswap-v3-factory
Command: npx skills add https://github.com/cyotee/uniswap-V3-skill --skill uniswap-v3-factory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users understand how the UniswapV3Factory contract deploys pools deterministically using CREATE2 and how fee tiers are managed, enabling off-chain address computation and informed deployment decisions.

Core Features & Use Cases

  • Deterministic Pool Deployment: Compute pool addresses off-chain and deploy pools with a fixed salt based on token0, token1, and fee.
  • Fee Tier Management: Inspect and configure supported fee tiers and their corresponding tick spacing.
  • Pool Initialization Flow: Understand the end-to-end process from pool creation to initialization in a single transaction.

Quick Start

Ask the AI to explain how to compute the address of a pool for tokens A and B with a specific fee, and how to deploy it using the factory.

Frequently Asked Questions about Uniswap V3 Factory

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

FAQPage Schema
How do I compute a Uniswap V3 pool address off-chain before deployment?

Uniswap V3 uses CREATE2 to generate deterministic pool addresses based on token0, token1, and fee tier. You can calculate the pool address off-chain by hashing these parameters with the factory's salt, enabling you to know the address before calling the factory's create pool function.

What are Uniswap V3 fee tiers and how do they map to tick spacing?

Fee tiers are supported commission percentages (0.01%, 0.05%, 0.30%, 1%) configured in the factory. Each tier maps to a specific tick spacing value that determines the granularity of liquidity positions. The factory contract manages this mapping and enforces which fee tiers are active.

How do I deploy and initialize a Uniswap V3 pool in a single transaction?

Call the factory's createPool function with token0, token1, and fee to deploy the pool deterministically. After deployment, initialize the pool by setting the initial price through a separate call to the pool's initialize function, which can be batched in the same transaction using a router or multicall.

Can I use any fee tier when creating a Uniswap V3 pool?

No. The factory only allows creation of pools with fee tiers that are explicitly enabled in its configuration. Attempting to create a pool with an unsupported fee tier will revert. Check the factory's feeAmountTickSpacing mapping to confirm which fees are active before deployment.

Why use deterministic pool deployment with CREATE2 instead of random addresses?

Deterministic addressing enables off-chain address calculation, pre-computation of pool interactions, and reliable contract discovery without querying on-chain. This reduces deployment overhead, simplifies integration, and allows applications to predict pool locations before they exist.