# Uniswap/v4-core

🦄 🦄 🦄 🦄 Core smart contracts of Uniswap v4

Repository: https://github.com/Uniswap/v4-core
Canonical: https://ross.abutalabs.com/products/v4-core
Homepage: https://blog.uniswap.org/uniswap-v4
Language: Solidity
License Family: other
Last push: 2026-04-24T19:50:04+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 8, longevity 100
- inputs: {"age_days": 1763, "days_push": 131, "days_rel": 587, "gap_med": null, "n_releases_24m": 1}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2527, forks 1313 (observed 2026-08-28T04:06:58.684261+00:00)

## What it is
Uniswap v4-core is the set of core Solidity smart contracts implementing the Uniswap v4 automated market maker protocol, including the singleton PoolManager contract that manages all pool state and actions like swapping, liquidity modification, and donations. It introduces a hook system that allows developers to attach custom contracts to pools, executing logic at various points in the pool lifecycle (e.g., before/after swaps or liquidity changes).

## Use cases
- deploy custom AMM pools with hook-based logic on EVM chains
- build a decentralized exchange using Uniswap v4 pool primitives
- implement dynamic fees, limit orders, or TWAMM strategies via pool hooks
- integrate token swapping and liquidity provision into a DeFi protocol
- audit or fork the core pool logic of Uniswap v4
- create and manage concentrated liquidity positions programmatically

## When to choose
- you need the foundational, trust-minimized pool logic for building on Uniswap v4
- you want to leverage the singleton architecture and hook system for custom AMM behavior
- you are a protocol developer integrating directly with Uniswap v4 onchain primitives
- you need gas-efficient, audited core contracts for a decentralized exchange

## When to avoid
- you just want to swap tokens from a frontend without writing smart contracts (use the Uniswap SDK or API instead)
- you need a ready-made user interface or router (see v4-periphery or the Uniswap interface)
- you are building on a non-EVM blockchain
- you require a stable, long-frozen contract version and cannot tolerate draft-stage code changes

## Facets
- artifact type: library
- maturity: active
- function: blockchain, sdk
- domain: blockchain, fintech
- platform: -
- tags: uniswap, defi, automated-market-maker, smart-contracts, solidity, hooks, singleton-architecture, liquidity-pools, decentralized-exchange, cryptocurrency, ethereum, evm

## Member repositories
- Uniswap/v4-core (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:58.684261+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:24.219609+00:00, confidence not recorded.
  - readme: https://github.com/Uniswap/v4-core (fetched 2026-08-28T04:06:58.684261+00:00, sha 07177c5150a5)
  - homepage: https://blog.uniswap.org/uniswap-v4 (fetched 2026-08-29T10:07:52.904584+00:00, sha 9cf249a54d2c)
  - site_page: https://docs.uniswap.org/ (fetched 2026-08-29T10:07:52.913911+00:00, sha 07d9ef5c24c7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
