Uniswap V2 Core: Decentralized exchange smart contracts
Core smart contracts for Uniswap V2 AMM protocol handling liquidity pools, token swaps, and fee collection.
Learn more about Uniswap V2 Core
Uniswap V2 Core is a collection of Ethereum smart contracts that implement an automated market maker (AMM) protocol for decentralized token trading. The system uses a constant product formula (x * y = k) to determine exchange rates and maintains liquidity through user-contributed token pairs stored in smart contract pools. The contracts are written in Solidity and include factory contracts for creating new trading pairs, pair contracts for managing individual liquidity pools, and ERC20 token implementations for liquidity provider tokens. The protocol is commonly used for decentralized token swapping, liquidity provision, and as infrastructure for other DeFi applications.
Constant Product AMM
Implements the x * y = k automated market maker formula for price discovery and liquidity management. This mathematical model ensures continuous liquidity availability for token swaps.
Factory Pattern Architecture
Uses a factory contract system to programmatically deploy new trading pair contracts. This allows for permissionless creation of markets for any ERC20 token pair.
LP Token System
Issues ERC20 liquidity provider tokens that represent proportional ownership in liquidity pools. These tokens can be transferred, traded, or used as collateral in other protocols.
See how people are using Uniswap V2 Core
Top in Crypto
Related Repositories
Discover similar tools and frameworks used by developers
go-libp2p
A modular peer-to-peer networking stack for Go applications, providing transport protocols and network services.
Solady
Collection of gas-optimized Solidity smart contract implementations for Ethereum development.
Polkadot SDK
Complete development kit for building blockchains and parachains on the Polkadot network ecosystem.
AvalancheGo
Go-based node implementation for the Avalanche blockchain network with high throughput transaction processing.
Aave V3 Core
Smart contracts for Aave Protocol V3, a decentralized liquidity market for lending and borrowing cryptocurrencies.
Related Reading
Guides and comparisons from the Greptile content library
Best Code Review Tools in 2026
The best code review tools in 2026, compared on pricing, features, deployment options, and ideal use cases for teams of any size.
Flaky Tests: What Is a Flaky Test and How Do You Manage Them?
What flaky tests are, what causes them, how to detect them, and 12 ways to fix them. Plus why end-to-end tests are more prone to flakiness, and how seeing what actually happened during a run helps you tell a test problem from a code problem.
9 Best Pull Request Automation Tools [2026]
Nine pull request automation tools compared on features, use cases, pricing, and user feedback, so you can work out which one closes the gap between how fast your team writes code and how fast it can review it.
How to Evaluate Code Review Tools: The 4 Step Framework
A 4-step framework for evaluating code review tools on large teams with complex codebases: define what you need, build a shortlist, run a live test, and get developer feedback. Plus a shortlist of tools and how to future-proof your review process.