Skip to content

Decentralized Uniswap-like exchange for Algorand Standard Assets. Currently a work-in-progress.

License

Notifications You must be signed in to change notification settings

haardikk21/AlgoSwap

 
 

Repository files navigation

AlgoSwap

WARNING: THIS CODE HAS NOT BEEN AUDITED AND SHOULD NOT BE USED ON THE ALGORAND MAINNET - USE AT YOUR OWN RISK!

Overview

AlgoSwap is an automated market maker like UniSwap built on the Pure Proof of Stake Algorand Blockchain. It relies on the xy = k function to maintain exchange rates for liquidity pairs in the market.


Protocol

See the AlgoSwap Protocol documentation.


Setup and Initialization

TODO


TODO

  • Test cases
  • Anti-frontrunning using hashed commitments: in one block you must commit to making a trade by putting down a deposit (the amount needs to be thought out to properly align incentives), in a later block you would follow through on the commitment by actually making a trade, you can't make a trade unless you've committed to it in a previous block, this should entirely prevent frontrunning bots

Credits

AlgoSwap was made possible by a generous grant from the Algorand Foundation, and the hard work of the following individuals:

License

AlgoSwap is made available under the MIT license.

About

Decentralized Uniswap-like exchange for Algorand Standard Assets. Currently a work-in-progress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 78.0%
  • TypeScript 14.6%
  • CSS 2.8%
  • Shell 2.3%
  • HTML 1.4%
  • JavaScript 0.6%
  • Makefile 0.3%