Skip to content

v3.0.0-alpha - Simplification Iteration

Compare
Choose a tag to compare
@AlexRubik AlexRubik released this 04 Jan 21:22
· 6 commits to main since this release
547b063

RUDE Bot v3.0.0 Release Notes

New Features

CLI Command Args

For args, use this format: ./rude --help

  • --help: Show help message
  • --overview: Show quick start guide
  • --createkp: Create new Solana keypair
  • --cnxs: Configure RPC/GRPC connections
  • --jup: Start Jupiter API instance
  • To start the bot, just use ./rude

Configurable Profit BPS Thresholds

  • Added two new environment variables to control minimum profit thresholds:
    • MIN_PROFIT_BPS_MIN: Minimum profit BPS for large trades (default: 3)
    • MIN_PROFIT_BPS_MAX: Maximum profit BPS for small trades (default: 25)

Risk Presets and Worker Distribution

The RISK setting in your .env file now has three options that affect how workers are distributed:

Worker Distribution Logic:

  • WSOL gets 70% of workers by default
  • USDC gets 20% of workers if available
  • USDT gets 10% of workers if available
  • If a stable is missing, its allocation goes to WSOL

Risk Level Effects:

  1. LOW Risk

    • All workers use Jito (jitoProfitPerc: 80)
    • Most conservative
    • Best for stable network conditions
  2. MEDIUM Risk

    • Half workers use Jito, half use Native
    • Balanced approach
    • Good for mixed market conditions
  3. HIGH Risk

    • All workers use Native routes (jitoProfitPerc: 0)
    • Most aggressive
    • Best for high-volatility periods

Configurable Scale Thresholds

Added new environment variables to control profit scaling thresholds:

  • SOL Scale Thresholds:

    • MIN_SOL_SCALE: Minimum SOL amount for scaling (default: 0.05)
    • MAX_SOL_SCALE: Maximum SOL amount for scaling (default: 1)
  • USD Scale Thresholds:

    • MIN_USD_SCALE: Minimum USD amount for scaling (default: 5)
    • MAX_USD_SCALE: Maximum USD amount for scaling (default: 120)

Profit BPS will scale between MIN and MAX based on these thresholds:

  • For WSOL:
    • ≥MAX_SOL_SCALE: Uses MIN_PROFIT_BPS_MIN
    • MIN_SOL_SCALE to MAX_SOL_SCALE: Scales from MAX to MIN
  • For USDC/USDT:
    • ≥MAX_USD_SCALE: Uses MIN_PROFIT_BPS_MIN
    • MIN_USD_SCALE to MAX_USD_SCALE: Scales from MAX to MIN

How It Works:

For a Default Setup with WSOL:

  • Trade size ≥ 1 SOL: Requires 3 BPS profit
  • Trade size 0.05 SOL: Requires 25 BPS profit
  • Trade sizes between scale linearly
    • 0.5 SOL ≈ 14 BPS
    • 0.25 SOL ≈ 19 BPS

For USDC/USDT:

  • Trade size ≥ $120: Requires 3 BPS profit
  • Trade size $5: Requires 25 BPS profit
  • Trade sizes between scale linearly
    • $60 ≈ 14 BPS
    • $30 ≈ 19 BPS

Adjust these values based on:

  • Your capital size
  • Market volatility
  • Risk tolerance
  • Network conditions

Improvements

  • Enhanced error handling for RPC connections
  • Improved token balance fetching reliability
  • Better logging for configuration updates
  • Optimized bundle sending for lower latency