BTBBackendV1 is a sophisticated backend service designed for managing decentralized finance (DeFi) operations on the Raydium platform. This service provides automated liquidity management, including adding and removing liquidity, claiming rewards, rebalancing, and reinvesting funds. It empowers users to customize how their earned fees are managed, offering options to reinvest all or part of their fees back into liquidity pools or to claim their fees in any token of their choice.
- 🌊 Add Liquidity: Seamlessly add liquidity to Raydium pools.
- 🔄 Remove Liquidity: Effortlessly remove liquidity from pools as needed.
- 🏆 Claim Rewards: Automatically claim rewards and update positions.
- ⚖️ Rebalance Liquidity: Automate the rebalancing of liquidity positions based on predefined conditions.
- 💰 Reinvest Rewards: Reinvest claimed rewards back into liquidity pools or convert them to preferred tokens.
- 🎛️ Custom Fee Management:
- Reinvest Fees: Choose to reinvest all or a specific percentage of earned fees back into the pool.
- Claim Fees in Preferred Tokens: Opt to claim fees in any preferred token, rather than the pool's native token.
Before you begin, ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/btb-finance/BTBBackendV1.git cd BTBBackendV1
-
Install dependencies:
anchor build
-
Deploy the program:
anchor deploy
-
Run tests:
anchor test
To build the project, run:
anchor build
To deploy the program to the Solana Devnet:
anchor deploy
To deploy to the Solana Mainnet:
-
Set the Solana cluster to Mainnet:
solana config set --url https://api.mainnet-beta.solana.com
-
Deploy the program:
anchor deploy
Run the included tests to ensure everything is working correctly:
anchor test
This will compile and run the tests located in the tests/
directory.
We welcome contributions to BTBBackendV1! Please read our Contributing Guidelines for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on our GitHub issue tracker.
Made with ❤️ by the BTB Finance Team