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.
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.
What is agentic coding? Benefits, risks, and best tools to consider
What engineering leaders need to know about agentic coding: how it differs from AI coding and vibe coding, how it works, the benefits and risks, and the tools worth evaluating.
Top AI Code Review Tools for Small Dev Teams 2026
Affordable, lightweight AI code review tools that help small teams catch bugs faster. Practical comparisons of accuracy, ease of use, and value for teams without enterprise budgets.