Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/atharmohammad/exchange

Exchange is AMM based on constant product curve. Inspired from Balancer and Solana Token Swap Program
https://github.com/atharmohammad/exchange

amm anchor-lang defi rust solana

Last synced: 1 day ago
JSON representation

Exchange is AMM based on constant product curve. Inspired from Balancer and Solana Token Swap Program

Awesome Lists containing this project

README

        

# Exchange

## 🔖 About

Exchange is an AMM based on constant product curve. Inspired from Balancer and Solana Token Swap Program.

- Constant product:
`(A+A') * (B-B') = Invariant`

- Balancer WhitePaper:
https://balancer.fi/whitepaper.pdf

- Solana Token Swap:
https://spl.solana.com/token-swap

## 🚀 Features

- Initialize Swap Pool with tokens
- Deposit tokens to get pool tokens representing the share in the pool
- Withdraw tokens in exchange for pool tokens
- Swap token A with token B and vice versa after some fee

** CODE IS NOT AUDITED AND STILL WIP **