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>
This commit is contained in:
84
.env.deployment.example
Normal file
84
.env.deployment.example
Normal file
@@ -0,0 +1,84 @@
|
||||
# MEV Bot Smart Contract Deployment Configuration
|
||||
# Copy this file to .env.deployment and fill in your values
|
||||
# ⚠️ NEVER commit .env.deployment to git!
|
||||
|
||||
# =============================================================================
|
||||
# DEPLOYER WALLET (REQUIRED)
|
||||
# =============================================================================
|
||||
|
||||
# Your deployer wallet private key (starts with 0x)
|
||||
# ⚠️ Use a dedicated deployment wallet, not your main wallet!
|
||||
DEPLOYER_PRIVATE_KEY="0x..."
|
||||
|
||||
# Alternative: Use PRIVATE_KEY if you prefer
|
||||
# PRIVATE_KEY="0x..."
|
||||
|
||||
# =============================================================================
|
||||
# RPC ENDPOINTS
|
||||
# =============================================================================
|
||||
|
||||
# Arbitrum Mainnet RPC
|
||||
ARBITRUM_RPC_ENDPOINT="https://arb1.arbitrum.io/rpc"
|
||||
|
||||
# Alternative premium RPC providers (recommended for reliability):
|
||||
# Alchemy: https://arb-mainnet.g.alchemy.com/v2/YOUR_API_KEY
|
||||
# Chainstack: https://arbitrum-mainnet.core.chainstack.com/YOUR_API_KEY
|
||||
# Infura: https://arbitrum-mainnet.infura.io/v3/YOUR_API_KEY
|
||||
|
||||
# Arbitrum Goerli Testnet RPC (for testing)
|
||||
# ARBITRUM_RPC_ENDPOINT="https://goerli-rollup.arbitrum.io/rpc"
|
||||
|
||||
# =============================================================================
|
||||
# CONTRACT VERIFICATION (OPTIONAL)
|
||||
# =============================================================================
|
||||
|
||||
# Arbiscan API key for contract verification
|
||||
# Get your key from: https://arbiscan.io/myapikey
|
||||
ARBISCAN_API_KEY=""
|
||||
|
||||
# Enable automatic verification during deployment
|
||||
# Set to "true" to enable, "false" to disable
|
||||
VERIFY="false"
|
||||
|
||||
# =============================================================================
|
||||
# DEPLOYMENT SETTINGS
|
||||
# =============================================================================
|
||||
|
||||
# Target network
|
||||
# Options: "arbitrum" (mainnet), "arbitrum-goerli" (testnet)
|
||||
NETWORK="arbitrum"
|
||||
|
||||
# Gas price (in gwei) - leave empty for automatic estimation
|
||||
# GAS_PRICE=""
|
||||
|
||||
# Gas limit - leave empty for automatic estimation
|
||||
# GAS_LIMIT=""
|
||||
|
||||
# =============================================================================
|
||||
# DEPLOYMENT CHECKLIST
|
||||
# =============================================================================
|
||||
#
|
||||
# Before deploying:
|
||||
# 1. ✓ Copy this file to .env.deployment
|
||||
# 2. ✓ Fill in DEPLOYER_PRIVATE_KEY
|
||||
# 3. ✓ Fill in ARBITRUM_RPC_ENDPOINT (or use default)
|
||||
# 4. ✓ (Optional) Fill in ARBISCAN_API_KEY for verification
|
||||
# 5. ✓ Ensure deployer wallet has sufficient ETH (~0.01 ETH)
|
||||
# 6. ✓ Test on testnet first (NETWORK="arbitrum-goerli")
|
||||
# 7. ✓ Review contracts in contracts/ directory
|
||||
# 8. ✓ Run: source .env.deployment
|
||||
# 9. ✓ Run: ./scripts/deploy-contracts.sh
|
||||
#
|
||||
# =============================================================================
|
||||
|
||||
# =============================================================================
|
||||
# SECURITY WARNINGS
|
||||
# =============================================================================
|
||||
#
|
||||
# ⚠️ NEVER commit .env.deployment to version control!
|
||||
# ⚠️ NEVER share your private key with anyone!
|
||||
# ⚠️ Use a dedicated deployment wallet with minimal funds!
|
||||
# ⚠️ Test on testnet before deploying to mainnet!
|
||||
# ⚠️ Backup your deployment logs and addresses!
|
||||
#
|
||||
# =============================================================================
|
||||
Reference in New Issue
Block a user