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: about 2 months ago
JSON representation
Exchange is AMM based on constant product curve. Inspired from Balancer and Solana Token Swap Program
- Host: GitHub
- URL: https://github.com/atharmohammad/exchange
- Owner: atharmohammad
- Created: 2023-08-30T17:44:11.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-17T20:13:36.000Z (over 1 year ago)
- Last Synced: 2025-04-04T08:48:14.429Z (about 1 year ago)
- Topics: amm, anchor-lang, defi, rust, solana
- Language: Rust
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 **