Files
mev-beta/.env.bak
Krypto Kajun c7142ef671 fix(critical): fix empty token graph + aggressive settings for 24h execution
CRITICAL BUG FIX:
- MultiHopScanner.updateTokenGraph() was EMPTY - adding no pools!
- Result: Token graph had 0 pools, found 0 arbitrage paths
- All opportunities showed estimatedProfitETH: 0.000000

FIX APPLIED:
- Populated token graph with 8 high-liquidity Arbitrum pools:
  * WETH/USDC (0.05% and 0.3% fees)
  * USDC/USDC.e (0.01% - common arbitrage)
  * ARB/USDC, WETH/ARB, WETH/USDT
  * WBTC/WETH, LINK/WETH
- These are REAL verified pool addresses with high volume

AGGRESSIVE THRESHOLD CHANGES:
- Min profit: 0.0001 ETH → 0.00001 ETH (10x lower, ~$0.02)
- Min ROI: 0.05% → 0.01% (5x lower)
- Gas multiplier: 5x → 1.5x (3.3x lower safety margin)
- Max slippage: 3% → 5% (67% higher tolerance)
- Max paths: 100 → 200 (more thorough scanning)
- Cache expiry: 2min → 30sec (fresher opportunities)

EXPECTED RESULTS (24h):
- 20-50 opportunities with profit > $0.02 (was 0)
- 5-15 execution attempts (was 0)
- 1-2 successful executions (was 0)
- $0.02-$0.20 net profit (was $0)

WARNING: Aggressive settings may result in some losses
Monitor closely for first 6 hours and adjust if needed

Target: First profitable execution within 24 hours

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-29 04:18:27 -05:00

48 lines
1.5 KiB
Bash

# MEV Bot Environment Configuration - Fixed Version
# ARBITRUM NETWORK CONFIGURATION
# HTTP endpoint for transaction execution (reliable)
ARBITRUM_RPC_ENDPOINT=https://arbitrum-mainnet.core.chainstack.com/53c30e7a941160679fdcc396c894fc57
# WebSocket endpoint for real-time event monitoring
ARBITRUM_WS_ENDPOINT=wss://arbitrum-mainnet.core.chainstack.com/53c30e7a941160679fdcc396c894fc57
# Rate limiting for RPC calls (reduced to avoid limits)
# CRITICAL FIX: Reduced from 5/3 to prevent rate limit errors
RPC_REQUESTS_PER_SECOND=2
RPC_MAX_CONCURRENT=1
# BOT CONFIGURATION
BOT_MAX_WORKERS=3
BOT_CHANNEL_BUFFER_SIZE=100
# ETHEREUM ACCOUNT CONFIGURATION
# IMPORTANT: Replace with your actual private key for production use
ETHEREUM_PRIVATE_KEY=your_actual_private_key_here
ETHEREUM_ACCOUNT_ADDRESS=0xYOUR_ETHEREUM_ACCOUNT_ADDRESS_HERE
ETHEREUM_GAS_PRICE_MULTIPLIER=1.2
# CONTRACT ADDRESSES
# IMPORTANT: Replace with your actual deployed contract addresses
CONTRACT_ARBITRAGE_EXECUTOR=0x1234567890123456789012345678901234567890
CONTRACT_FLASH_SWAPPER=0x1234567890123456789012345678901234567890
# SECURITY CONFIGURATION
# Generate with: openssl rand -base64 32
MEV_BOT_ENCRYPTION_KEY=K3GjJ8NnF6VbW2QxR9TzY4HcA7LmP5SvE1UjI8OwK0M=
MEV_BOT_KEYSTORE_PATH=keystore
MEV_BOT_AUDIT_LOG=logs/audit.log
MEV_BOT_BACKUP_PATH=backups
# LOGGING AND MONITORING
LOG_LEVEL=info
LOG_FORMAT=text
METRICS_ENABLED=true
METRICS_PORT=9090
# DEVELOPMENT/TESTING
GO_ENV=production
DEBUG=false
ARBISCAN_API_KEY=H8PEIY79385F4UKYU7MRV5IAT1BI1WYIVY