Fully Baked Amm
⚖️ A lightweight AMM on Solana, built with Anchor no order books, just smart liquidity and dynamic pricing.
Install / Use
npx skills add baindlapranayraj/fully-baked-ammInstalls into whichever agent you are using.
README
Automated Market Maker (AMM)
Overview
The Automated Market Maker (AMM) is a fully backed, decentralized exchange protocol built using the Anchor framework on the Solana blockchain. Unlike traditional order book trading systems, this AMM leverages algorithmic models to dynamically set prices based on asset supply and demand within liquidity pools.
Key Features
- Constant Product AMM: Enables efficient two-token trading by leveraging a constant product formula.
- Multiple Liquidity Pools: Administrators can create and manage various pools, enhancing trading flexibility.
- Token Swapping: Provides seamless token exchange capabilities.
- Liquidity Provision: Allows users to effortlessly add liquidity to pools to support the network’s trading operations.
- LP Token Minting: Automatically issues Liquidity Pool tokens to users upon the addition of liquidity.
- Liquidity Withdrawal: Facilitates secure and straightforward asset removal from pools.
Operational Model
Our AMM employs the constant product formula, a proven approach that maintains market equilibrium and allows for reliable, predictable trading rates despite liquidity fluctuations.
Program Architecture
<div align="center"> <img src="Images/architecture.png" alt="Architecture Diagram" width="600"> <p>Overview of the system where administrators create multiple pools and users engage in token swaps or liquidity deposits.</p> </div>Detailed Visuals
- Constant Product Curve: <div align="center"> <img src="Images/pool.png" alt="Constant Product Curve" width="600"> </div>
- Token Swapping: <div align="center"> <img src="Images/swap-tokens.png" alt="Token Swapping" width="600"> </div>
- Adding Liquidity: <div align="center"> <img src="Images/add-liq.png" alt="Adding Liquidity" width="600"> </div>
- LP Token Minting: <div align="center"> <img src="Images/lp-mint-tokens.png" alt="Minting LP Tokens" width="600"> </div>
- Liquidity Withdrawal: <div align="center"> <img src="Images/remove-liq.png" alt="Removing Liquidity" width="600"> </div>
Development Status
- Smart Contract Development: Completed
- Testing: Completed
- Frontend Integration: In Progress
Contributing
We welcome contributions to improve this project. To contribute:
- Fork the repository.
- Create a new branch (e.g.,
feature/your-feature-name). - Make your changes and commit them with a clear, descriptive message.
- Push your branch to your fork.
- Open a Pull Request to propose your changes.
References
- AMM Blog Post — A comprehensive guide by @InfectedCrypto that explains AMM principles effortlessly.
- Constant Product Equation — A detailed video by @ProgrammerSmart covering the mathematical foundations behind the AMM.
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
