# uniswap/v3-core

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/uniswap-v3-core).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

5,005 stars · 3,030 forks · TypeScript · NOASSERTION

## Links

- GitHub: https://github.com/Uniswap/v3-core
- Homepage: https://uniswap.org
- awesome-repositories: https://awesome-repositories.com/repository/uniswap-v3-core.md

## Topics

`automated-market-maker` `core` `ethereum` `smart-contracts`

## Description

This project is a decentralized exchange core and Ethereum automated market maker providing the foundational on-chain logic for managing liquidity pools and executing token swaps. It implements an ERC-20 token swap engine and an on-chain liquidity manager to facilitate the exchange of standardized fungible tokens.

The system utilizes a concentrated liquidity protocol, allowing providers to allocate assets within specific price ranges to increase capital efficiency. It employs a constant product formula for price calculation and a tick-based tracking system to manage liquidity distribution. Unique liquidity positions are tracked as non-fungible tokens, and the architecture includes on-chain oracles for time-weighted average prices.

The platform covers broad capabilities across swap routing, liquidity management, and security. It supports multi-path swap quoting and intent-based order execution alongside tools for liquidity pool seeding and position calculation. Security is managed through token approval verification and a hook system that allows for custom smart contract logic during pool events.

The project is implemented primarily in TypeScript.

## Tags

### Business & Productivity Software

- [Decentralized Exchange Engines](https://awesome-repositories.com/f/business-productivity-software/decentralized-exchange-engines.md) — Provides the core on-chain engine for managing liquidity pools, executing atomic swaps, and calculating token prices.
- [Automated Market Makers](https://awesome-repositories.com/f/business-productivity-software/decentralized-exchange-integrations/automated-market-makers.md) — Implements the core automated market maker logic for executing token swaps using constant product and concentrated liquidity models. ([source](https://docs.uniswap.org/docs/get-started/quickstart))
- [Liquidity Position Management](https://awesome-repositories.com/f/business-productivity-software/decentralized-exchange-integrations/automated-market-makers/liquidity-deposits/liquidity-position-management.md) — Provides an on-chain manager for depositing and withdrawing token positions to earn trading fees.
- [Range-Bound Liquidity Provisioning](https://awesome-repositories.com/f/business-productivity-software/price-list-management/pricing-trackers/oracle-price-monitoring/liquid-staking-token-pricings/range-bound-liquidity-provisioning.md) — Deposits tokens into a pool within a specified price range to enable trading and earn swap fees. ([source](https://docs.uniswap.org/docs/liquidity/overview))
- [Batched Transaction Executions](https://awesome-repositories.com/f/business-productivity-software/automated-trading-execution/decentralized-trade-execution/batched-transaction-executions.md) — Combines multiple trades across different protocol versions into a single transaction using a command-based encoding system. ([source](https://docs.uniswap.org/docs/protocols/overview))
- [Limit Orders](https://awesome-repositories.com/f/business-productivity-software/conditional-trade-execution/limit-orders.md) — Enables the placement of price-constrained orders by submitting signed payloads and monitoring their execution status. ([source](https://docs.uniswap.org/docs/get-started/quickstart))
- [Liquidity Deposits](https://awesome-repositories.com/f/business-productivity-software/decentralized-exchange-integrations/automated-market-makers/liquidity-deposits.md) — Allows users to deposit or withdraw assets into specific price ranges of a pool to earn trading fees. ([source](https://cdn.jsdelivr.net/gh/uniswap/v3-core@main/README.md))
- [Liquidity Pool Frameworks](https://awesome-repositories.com/f/business-productivity-software/decentralized-exchange-integrations/liquidity-pool-frameworks.md) — Uses factory patterns to manage the creation and deployment of unique liquidity pool pairs.

### Data & Databases

- [Concentrated Liquidity Models](https://awesome-repositories.com/f/data-databases/liquidity-pool-implementations/concentrated-liquidity-models.md) — Implements a concentrated liquidity model allowing providers to allocate assets within specific price ranges.
- [DEX Quote Aggregators](https://awesome-repositories.com/f/data-databases/dex-quote-aggregators.md) — Calculates the most efficient routing paths across liquidity pools to provide optimal price quotes. ([source](https://docs.uniswap.org/docs/get-started/quickstart))
- [Concentrated Liquidity Models](https://awesome-repositories.com/f/data-databases/liquidity-pool-implementations/liquidity-provisioning/concentrated-liquidity-models.md) — Implements a concentrated liquidity protocol allowing providers to allocate assets within specific price ranges for higher capital efficiency.
- [Cross-Chain Swap Routers](https://awesome-repositories.com/f/data-databases/cross-chain-swap-routers.md) — Calculates optimal paths and pricing for exchanging assets across different versions of liquidity pools. ([source](https://docs.uniswap.org/docs/sdks/overview))
- [Liquidity Pool Creations](https://awesome-repositories.com/f/data-databases/liquidity-pool-creations.md) — Provides mechanisms for initializing and configuring new decentralized asset trading pools. ([source](https://docs.uniswap.org/docs/sdks/v4/overview))
- [Liquidity Provisioning](https://awesome-repositories.com/f/data-databases/liquidity-pool-implementations/liquidity-provisioning.md) — Enables the deposition of assets into liquidity pools to facilitate trading and earn transaction fees. ([source](https://docs.uniswap.org/))
- [Pool Hooks](https://awesome-repositories.com/f/data-databases/liquidity-pool-implementations/pool-hooks.md) — Provides customizable logic hooks to modify the behavior of liquidity pool trades and deposits.
- [Market Data Access APIs](https://awesome-repositories.com/f/data-databases/market-data-access-apis.md) — Provides interfaces for retrieving real-time market prices and swap details for external consumption. ([source](https://docs.uniswap.org/))
- [Multi-Asset Quote Retrievers](https://awesome-repositories.com/f/data-databases/multi-asset-quote-retrievers.md) — Retrieves the best available prices across multiple paths, including bridges and asset wraps. ([source](https://docs.uniswap.org/docs/trading/swapping-api/getting-started))
- [On-Chain Price Feed Readings](https://awesome-repositories.com/f/data-databases/on-chain-price-feed-readings.md) — Stores time-weighted average prices on-chain for use as price feeds by external contracts.

### Software Engineering & Architecture

- [Constant Product Market Makers](https://awesome-repositories.com/f/software-engineering-architecture/constant-product-market-makers.md) — Implements a constant product formula to calculate price impact and adjust asset reserves during swaps. ([source](https://cdn.jsdelivr.net/gh/uniswap/v3-core@main/README.md))
- [DEX Swap Routing](https://awesome-repositories.com/f/software-engineering-architecture/dex-swap-routing.md) — Calculates the most efficient trade paths across different protocol versions and constructs the necessary transaction calldata. ([source](https://docs.uniswap.org/docs/trading/overview))
- [Token Swap Interfaces](https://awesome-repositories.com/f/software-engineering-architecture/fungible-token-standards/token-swap-interfaces.md) — Provides a programmatic engine for swapping ERC-20 fungible tokens through automated liquidity pools.
- [Liquidity Pool Logic Hooks](https://awesome-repositories.com/f/software-engineering-architecture/liquidity-pool-logic-hooks.md) — Modifies initialization, swap, and fee calculation logic using external smart contract hooks. ([source](https://docs.uniswap.org/docs/protocols/overview))
- [Liquidity Position Tokens](https://awesome-repositories.com/f/software-engineering-architecture/non-fungible-token-implementations/liquidity-position-tokens.md) — Tracks unique liquidity positions as non-fungible tokens to manage individual provider shares.
- [Swap Routing Optimizations](https://awesome-repositories.com/f/software-engineering-architecture/swap-routing-optimizations.md) — Deno Protocol calculates optimal exchange paths and generates deep links for user interfaces. ([source](https://docs.uniswap.org/docs/uniswap-ai/skills))
- [Tick-Based Price Tracking](https://awesome-repositories.com/f/software-engineering-architecture/tick-based-price-tracking.md) — Uses a tick-based tracking system to manage the distribution of liquidity across price intervals.
- [Trade Routing Optimization](https://awesome-repositories.com/f/software-engineering-architecture/trade-routing-optimization.md) — Analyzes routing and token discovery to determine the most cost-effective path for executing token exchanges. ([source](https://docs.uniswap.org/docs/uniswap-ai/overview))
- [Client-Side Calculation Engines](https://awesome-repositories.com/f/software-engineering-architecture/client-side-calculation-engines.md) — Calculates trade quotes and encodes transaction data offline using deterministic logic engines before on-chain submission. ([source](https://docs.uniswap.org/docs/trading/overview))
- [Dynamic Fee Implementations](https://awesome-repositories.com/f/software-engineering-architecture/event-driven-architectures/backtesting-simulations/configurable-fee-models/trading-fee-tiers/dynamic-fee-implementations.md) — Executes external contract code during trades to implement dynamic fees and access control. ([source](https://docs.uniswap.org/docs/trading/overview))
- [Intent-Based Order Execution](https://awesome-repositories.com/f/software-engineering-architecture/intent-based-order-execution.md) — Sources liquidity from private inventories, bridges, and AMMs to complete user swap orders based on intent. ([source](https://docs.uniswap.org/docs/liquidity/overview))
- [On-Chain Price Discovery](https://awesome-repositories.com/f/software-engineering-architecture/on-chain-price-discovery.md) — Runs continuous clearing auctions to discover fair token prices through on-chain competition. ([source](https://docs.uniswap.org/docs/liquidity/liquidity-launchpad/overview))
- [Token Launching](https://awesome-repositories.com/f/software-engineering-architecture/tokenized-asset-vaults/token-launching.md) — Provides functionality to initialize new digital assets and bootstrap their initial liquidity on a decentralized exchange. ([source](https://docs.uniswap.org/docs/liquidity/liquidity-launchpad/overview))

### Part of an Awesome List

- [Protocol Integrations](https://awesome-repositories.com/f/awesome-lists/data/defi-protocol-implementations/protocol-integrations.md) — Implements programmatic interfaces and workflows for interacting with decentralized finance liquidity pools. ([source](https://cdn.jsdelivr.net/gh/uniswap/v3-core@main/README.md))

### Programming Languages & Runtimes

- [Smart Contract Execution Environments](https://awesome-repositories.com/f/programming-languages-runtimes/smart-contract-execution-environments.md) — Performs token exchanges within an on-chain contract by batching multiple actions into a single transaction. ([source](https://docs.uniswap.org/docs/trading/overview))

### Scientific & Mathematical Computing

- [Constant Product Market Formulas](https://awesome-repositories.com/f/scientific-mathematical-computing/constant-product-market-formulas.md) — Employs a constant product formula to calculate trade prices and maintain stable asset reserves.
- [Conditional Order Settlement](https://awesome-repositories.com/f/scientific-mathematical-computing/conditional-order-settlement.md) — Settles decentralized swaps by retrieving open orders and executing the necessary on-chain transactions. ([source](https://docs.uniswap.org/))
- [Liquidity Position Calculations](https://awesome-repositories.com/f/scientific-mathematical-computing/liquidity-position-calculations.md) — Determines the required asset amounts for establishing liquidity positions within specific price ranges. ([source](https://docs.uniswap.org/docs/uniswap-ai/skills))

### DevOps & Infrastructure

- [Contract-Based Deployment Automations](https://awesome-repositories.com/f/devops-infrastructure/smart-contract-deployment-pipelines/contract-based-deployment-automations.md) — Automates the setup of specialized contracts for token distribution and system extensions. ([source](https://docs.uniswap.org/docs/uniswap-ai/overview))
- [Universal Deployer Contracts](https://awesome-repositories.com/f/devops-infrastructure/universal-deployer-contracts.md) — Launches system contracts using a factory deployment pattern to ensure architectural consistency. ([source](https://docs.uniswap.org/docs/uniswap-ai/skills))

### Networking & Communication

- [Liquidity Management Automations](https://awesome-repositories.com/f/networking-communication/liquidity-management-automations.md) — Calculates and executes the placement of assets within specific price ranges to optimize exchange liquidity. ([source](https://docs.uniswap.org/docs/sdks/overview))

### Security & Cryptography

- [Token Allowance Verifications](https://awesome-repositories.com/f/security-cryptography/access-token-management/token-allowance-verifications.md) — Verifies if a contract has permission to spend tokens and generates the transaction to grant that access. ([source](https://docs.uniswap.org/docs/trading/swapping-api/getting-started))
- [Security Hook Frameworks](https://awesome-repositories.com/f/security-cryptography/secure-execution-environments/security-hook-frameworks.md) — Applies security guidance and tooling when building custom logic extensions within the pool hook system. ([source](https://docs.uniswap.org/docs/uniswap-ai/overview))
- [Token Allowance Controls](https://awesome-repositories.com/f/security-cryptography/security/policies/access-control/token-lifecycle-controllers/token-allowance-controls.md) — Combines signature-based transfers and time-bound allowances into a single contract to optimize token approvals. ([source](https://docs.uniswap.org/docs/protocols/overview))
- [Token Spend Approvals](https://awesome-repositories.com/f/security-cryptography/token-spend-approvals.md) — Checks if a wallet has sufficient token allowance and generates the necessary approval transaction. ([source](https://docs.uniswap.org/docs/api-reference))
- [Transaction Latency Reduction](https://awesome-repositories.com/f/security-cryptography/transaction-latency-reduction.md) — Increases market efficiency through sub-second preconfirmations and fast block processing. ([source](https://docs.uniswap.org/docs/unichain))
