FairSwap is a sandwich-resistant automated market maker (AMM) on the Solana blockchain, designed to protect traders from frontrunning attacks.
Devnet deployment tx: https://explorer.solana.com/tx/FHitFo8tvz9jEq57WGCkX6vjDe3dBt9RpPrQGXJ9c7yGZz6ZyMEY37mceBxR49CgsMrFRjnRvFiMmWmpEQ9vbFg?cluster=devnet Devnet program: https://explorer.solana.com/address/69hNfSV6nw46VXAJ3ukAQhSXikKdX2L3nP4UkLDEMnrr?cluster=devnet
- Sandwich-resistant trading
- Secure and transparent transactions
- Efficient trading experience
- Liquidity provision
- Solana CLI
- Anchor Framework
- Node.js and npm
-
Clone the repository:
git clone https://github.com/yourusername/fairswap.git cd fairswap -
Install dependencies:
npm install -
Build the project:
anchor build
To run the tests, use the following command:
anchor test
FairSwap can be used for trading tokens and providing liquidity. For detailed usage instructions, please refer to the user stories in the docs/user_stories.md file.
For developers interested in integrating FairSwap or building on top of it, please refer to the API documentation and example implementations in the codebase.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
For any questions or concerns, please open an issue on the GitHub repository.