Skip to content

Benjamin-cup/Make-SOL-bot

Repository files navigation

🚀 Make-SOL-bot

The Make-SOL-bot is a useful tool that helps protect against losses caused by SOL price fluctuations. The bot automatically swaps all SOL in your wallet to USDC when the SOL price drops below a set limit. Conversely, when the SOL price rises above the limit, it swaps all USDC back to SOL. This ensures that you avoid losses during volatile market conditions.

🎯 Key Features

  • 🛰️ Automatic SOL to USDC Swap: Converts all SOL to USDC if the price falls below the defined limit.

  • 🛰️ Automatic USDC to SOL Swap: Converts all USDC to SOL if the price exceeds the defined limit.

  • 🔍 Customizable Parameters: Users can configure fetch intervals, price limits, and balance thresholds.

  • 📊 Loss Protection: Prevents losses due to SOL price fluctuations.

  • JITO Support: Enables Jito fee configuration for optimized transactions.


📞 Stay Connected

Gmail: [email protected]

Discord: @.benjamincup

🧑‍💻 Environment Variables

Create a .env file and add the following configuration:

PRIVATE_KEY= RPC_ENDPOINT= RPC_WEBSOCKET_ENDPOINT= QUOTE_MINT=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v MAIN_MINT=So11111111111111111111111111111111111111112 COMMITMENT_LEVEL=confirmed IS_JITO=true JITO_FEE=0.00001

FETCH_SOL_PRICE_TIME = 60000 LIMIT_SOL_PRICE = 180 MIN_SOL_BALANCE = 0.3 UPLIMITPRICE = 1 DOWNLIMITPRICE = 0.1

🚀 Getting Started

Follow these steps to get your Make-SOL-bot up and running!

Installation

  1. Clone the Repository:

    git clone https://github.com/Benjamin-cup/Make-SOL-bot.git
  2. Install Dependencies:

    Navigate to the project directory and run the following command:

    cd Make-SOL-bot
    npm install
  3. Configure API Token:

    Replace the API token in the ENDPOINT variable:

    const ENDPOINT = 

    And set other variables in env file.

  4. Run the Bot:

    Start the bot by running:

    npm run start

🧑‍💻 Notes

The bot requires a valid Solana RPC provider.

Ensure that your wallet has enough SOL for transaction fees.

JITO fee can be adjusted if needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published