SkillAgentSearch skills...

AutoCompounder

Auto compound script for DefireX pools

Install / Use

/learn @DeFireX/AutoCompounder
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Installation

  1. Install Node.js (nodejs.org)

    We recommend to use Ubuntu and install nodejs via package manager.

    Node.js v12.x:

    # Using Ubuntu
    curl -fsSL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
    # Using Debian, as root
    curl -fsSL https://deb.nodesource.com/setup_12.x | bash -
    apt-get install -y nodejs
    
  2. Run npm install in project directory

    npm i
    
  3. Create .env file (nano ./.env) and add required information

    USER_ADDRESS=
    USER_PK=
    WITH_PROFIT_ONLY=1
    

    USER_ADDRESS is a wallet address like 0xc8F595E2084DB484f8A80109101D58625223b7C9

    USER_PK is a private key for USER_ADDRESS, private key is required to automated sending transactions

    WITH_PROFIT_ONLY indicates that we send trx only when user has a profit

    Make sure you have some BNB on your USER_ADDRESS balance (not less than 0.03 BNB).

    Don't use you main wallet, just create empty one and send some BNB.

  4. Run the script, check it runs properly without any errors

    node ./index.js
    
  5. Install pm2 process manager

    npm i pm2 -g
    
  6. Add script to pm2 to loop the process

    pm2 start ./index.js --name DefireXAutoCompounder
    

    You may check the logs via

    pm2 logs
    

    Stop the script

    pm2 stop DefireXAutoCompounder
    

    or

    pm2 stop 0
    
  7. Enable to restart script on server reboot

    pm2 save
    pm2 startup
    

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated2y ago
Forks4

Languages

JavaScript

Security Score

55/100

Audited on Jun 21, 2023

No findings