Critical fixes applied to resolve 94.4% error rate from RPC rate limiting: **Configuration Fixes:** - .env.production: Set Chainstack WSS as primary endpoint - config/providers_runtime.yaml: Prioritized Chainstack with 100 RPS limits - config/arbitrum_production.yaml: Increased rate limits from 20 to 100 RPS **Code Fixes:** - pkg/scanner/market/scanner.go: Use shared RPC client from contractExecutor instead of creating new clients for every pool fetch (critical fix) **Results:** - Blocks processing continuously without interruption - DEX transactions being detected and analyzed - 429 errors reduced from 21,590 (94.4%) to minimal occurrences - System health restored to production readiness **Root Cause:** Scanner was creating new RPC clients for every concurrent pool fetch, bypassing rate limiting and causing excessive requests to RPC endpoint. Each goroutine's client made independent requests without coordination. **Technical Details:** - Shared client respects global rate limits - Prevents connection pool exhaustion - Reduces overhead from repeated connection setup - Ensures all RPC calls go through rate-limited provider manager Resolves: LOG_ANALYSIS_20251029.md findings Impact: Critical - enables continuous block processing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
# MEV Bot Production Environment Configuration
|
|
# Generated: October 24, 2025
|
|
|
|
# Environment mode (REQUIRED for proper config file selection)
|
|
GO_ENV="production"
|
|
|
|
# REQUIRED: Encryption key for secure operations (32+ chars minimum)
|
|
MEV_BOT_ENCRYPTION_KEY="production_ready_encryption_key_32_chars_minimum_length_required"
|
|
|
|
# REQUIRED: Deployed contract addresses (Uniswap V3 Flash Swaps - Oct 27, 2025)
|
|
CONTRACT_ARBITRAGE_EXECUTOR="0x6C2B1c6Eb0e5aB73d8C60944c74A62bfE629c418"
|
|
CONTRACT_FLASH_SWAPPER="0x7Cc97259cBe0D02Cd0b8A80c2E1f79C7265808b4"
|
|
CONTRACT_DATA_FETCHER="0xC6BD82306943c0F3104296a46113ca0863723cBD"
|
|
|
|
# RPC Endpoints (minimal fallback - providers_runtime.yaml handles multi-provider failover)
|
|
ARBITRUM_RPC_ENDPOINT="wss://arbitrum-mainnet.core.chainstack.com/53c30e7a941160679fdcc396c894fc57"
|
|
ARBITRUM_WS_ENDPOINT="wss://arbitrum-mainnet.core.chainstack.com/53c30e7a941160679fdcc396c894fc57"
|
|
|
|
# Metrics and Monitoring
|
|
METRICS_ENABLED="true"
|
|
METRICS_PORT="9090"
|
|
|
|
# Storage Paths
|
|
MEV_BOT_KEYSTORE_PATH="keystore/production"
|
|
MEV_BOT_AUDIT_LOG="logs/production_audit.log"
|
|
MEV_BOT_BACKUP_PATH="backups/production"
|
|
|
|
# Provider Configuration
|
|
PROVIDER_CONFIG_PATH="config/providers_runtime.yaml"
|