Skip to content

akasimo/fairswap

Repository files navigation

FairSwap

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

Features

  • Sandwich-resistant trading
  • Secure and transparent transactions
  • Efficient trading experience
  • Liquidity provision

Getting Started

Prerequisites

  • Solana CLI
  • Anchor Framework
  • Node.js and npm

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/fairswap.git
    cd fairswap
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    anchor build
    

Running Tests

To run the tests, use the following command:

anchor test

Usage

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.

Development

For developers interested in integrating FairSwap or building on top of it, please refer to the API documentation and example implementations in the codebase.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

Contact

For any questions or concerns, please open an issue on the GitHub repository.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors