# Uniswap/v2-periphery

🎚 Peripheral smart contracts for interacting with Uniswap V2

Repository: https://github.com/Uniswap/v2-periphery
Canonical: https://ross.abutalabs.com/products/v2-periphery
Homepage: https://uniswap.org/docs
Language: Solidity
License: GPL-3.0
License Family: copyleft
Topics: ethereum, smart-contracts, erc20, decentralized-exchange, cryptocurrency
Last push: 2026-07-22T02:37:59+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 2459, "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 1268, forks 1761 (observed 2026-08-28T04:04:11.454775+00:00)

## What it is
Peripheral smart contracts for interacting with Uniswap V2, a decentralized exchange protocol on Ethereum. It provides contract artifacts and libraries for building integrations on top of the core Uniswap V2 contracts.

## Use cases
- integrate Uniswap V2 swaps into a smart contract
- build a router for token swaps on Ethereum
- add liquidity to Uniswap V2 pools programmatically
- query Uniswap V2 pair prices on-chain
- create ERC20 token pairs for a DEX
- build a DeFi protocol that depends on Uniswap V2

## When to choose
- you are building smart contracts that interact with Uniswap V2
- you need battle-tested peripheral contracts like routers and libraries for V2
- you want audited reference implementations for DEX integrations

## When to avoid
- you are building on Uniswap V3 or V4 rather than V2
- you only need off-chain price data or a frontend interface
- you need a general-purpose DEX aggregator rather than Uniswap-specific contracts

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

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:11.454775+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-30T05:03:36.274292+00:00, confidence not recorded.
  - readme: https://github.com/Uniswap/v2-periphery (fetched 2026-08-28T04:04:11.454775+00:00, sha e1f325ea9869)
  - homepage: https://uniswap.org/docs (fetched 2026-08-29T12:15:10.190115+00:00, sha cb146992a594)
- Data as of 2026-08-30T08:39:29.467469+00:00.
