Skip to content

JackCC703/AMMPool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

AMMPool - A Simple Constant Product AMM

This project is a simple implementation of an Automated Market Maker (AMM) based on the constant product formula (x * y = k), famously used by Uniswap V2. It's built with Solidity and designed for educational purposes to demonstrate the core mechanics of a decentralized exchange.

Features

  • Add Liquidity: Users can deposit a pair of ERC20 tokens to become liquidity providers and receive LP tokens in return.
  • Remove Liquidity: Liquidity providers can burn their LP tokens to withdraw their proportional share of the underlying tokens.
  • Swap Tokens: Users can swap one ERC20 token for another, with the price determined by the ratio of reserves in the pool.

Tech Stack

  • Solidity: Smart contract language
  • OpenZeppelin Contracts: For robust and secure ERC20 implementation and security utilities (ReentrancyGuard).
  • Remix IDE: Used for development, testing, and deployment.

About

A simple Automated Market Maker (AMM) liquidity pool smart contract written in Solidity, based on the constant product formula (x * y = k).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors