CRITICAL FIXES: 1. Multi-hop arbitrage amount=0 bug - Added missing config values: - min_scan_amount_wei: 10000000000000000 (0.01 ETH minimum) - max_scan_amount_wei: 9000000000000000000 (9 ETH, fits int64) - min_significant_swap_size: 10000000000000000 (0.01 ETH) 2. WebSocket 403 Forbidden error - Documented WSS endpoint issue: - Chainstack WSS endpoint returns 403 Forbidden - Updated ws_endpoint comment to explain using empty string for HTTP fallback ROOT CAUSE ANALYSIS: - The ArbitrageService.calculateScanAmount() was defaulting to 0 because config.MinScanAmountWei was uninitialized - This caused all multi-hop arbitrage scans to use amount=0, preventing any opportunities from being detected (803 occurrences in logs) VERIFICATION: - Container rebuilt and restarted successfully - No 403 Forbidden errors in logs ✓ - No amount=0 errors in logs ✓ - Bot processing swaps normally ✓ DOCUMENTATION: - Added comprehensive log analysis (logs/LOG_ANALYSIS_20251109.md) - Added detailed error analysis (logs/ERROR_ANALYSIS_20251109.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
2.9 KiB
2.9 KiB