# Uniswap/v2-core

🦄 🦄  Core smart contracts of Uniswap V2

Repository: https://github.com/Uniswap/v2-core
Canonical: https://ross.abutalabs.com/products/v2-core
Homepage: https://uniswap.org/docs
Language: TypeScript
License: GPL-3.0
License Family: copyleft
Topics: ethereum, smart-contracts, erc20, decentralized-exchange, cryptocurrency
Last push: 2026-07-21T20:02:45+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 2561, "days_push": 43, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3348, forks 3383 (observed 2026-08-28T04:07:57.703907+00:00)

## What it is
The core smart contracts of Uniswap V2, a decentralized exchange protocol on Ethereum. It contains the audited Solidity contracts for the automated market maker (AMM) pair and factory system.

## Use cases
- deploy a uniswap v2 style decentralized exchange
- understand how an automated market maker works
- fork uniswap v2 for a new defi project
- integrate erc20 token swap contracts into a dapp
- audit or study amm smart contract design

## When to choose
- you need the canonical, audited Uniswap V2 pair and factory contracts
- you are building a fork or derivative of Uniswap V2
- you want to study battle-tested AMM smart contract code

## When to avoid
- you need the Uniswap V3 concentrated liquidity contracts
- you want the frontend trading interface rather than on-chain contracts
- you need a non-EVM blockchain

## Facets
- artifact type: library
- maturity: maintenance
- function: blockchain, sdk
- domain: blockchain, fintech
- platform: -
- tags: smart-contracts, solidity, decentralized-exchange, erc20, defi, uniswap, automated-market-maker, cryptocurrency, ethereum

## Member repositories
- Uniswap/v2-core (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:57.703907+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-29T18:40:59.215027+00:00, confidence not recorded.
  - readme: https://github.com/Uniswap/v2-core (fetched 2026-08-28T04:07:57.703907+00:00, sha 14221549e24e)
  - homepage: https://uniswap.org/docs (fetched 2026-08-29T09:34:17.449295+00:00, sha cb146992a594)
- Data as of 2026-08-30T08:39:29.467469+00:00.
