Skip to content

aaronjan98/AMM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the Calyx AMM 👋

Version License: ISC Twitter: AJanovitch

Swap, Deposit, and Withdraw from a liquidity pool comprising of two Tokens.

Links

Note

  • You will need the tokens of the trading pair, Le/USD, to Swap, Deposit, and Withdraw. Please email me your wallet address at [email protected] and I'll send you the tokens.
  • Also, you'll want to add the custom tokens on metamask so that you can see your balances and transactions. To do this you'll need the USD address, 0xFfc2D05e40C3066A358F18D49a26D9DcfBa82cB9, and the Le address, 0xB055C28406722796E54A458b4A44D552cF963120.

Install

npm install

Usage

  • Run web server
npm run start
  • Run local blockchain
npm run ganache
  • Deploy Tokens and AMM contract
npx hardhat run scripts/deploy.js --network ganache
  • Seed AMM with transactions to view reserve history chart
npx hardhat run scripts/seed.js --network ganache
  • View hardhat/ganache accounts' Ether & token balances
npx hardhat run scripts/getBalances.js --network ganache

Run tests

npx hardhat test test/AMM.js

Author

👤 [email protected]

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

About

Automated Market Maker like Uniswap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published