Skip to content

kelbelss/automated-market-maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solidity Constant Sum Automated Market Maker

Constant Sum - built in Foundry Environment

Built following the Smart Contract Programmers video Constant Sum AMM Math | DeFi

Overview

This CSAMM is a simplified implementation of a Constant Sum Automated Market Maker (AMM) using the Solidity programming language. This smart contract facilitates the trading of two ERC20 tokens, allowing users to add and remove liquidity from the pool and swap tokens.

Features

  • Token Swapping: Users can swap between two tokens with a 0.3% fee.
  • Liquidity Provision: Users can add liquidity to the pool, earning shares representing their contribution.
  • Liquidity Removal: Users can remove their liquidity, receiving back the underlying tokens.

About

Solidity Constant Sum Automated Market Maker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published