feat: 优化金库交易和LP流动池功能
主要更新: - 金库交易动态读取: 从合约动态获取所有金库地址和名称 - 边界值测试优化: 修复 buy_exceed_hardcap 计算逻辑和错误处理 - 新增 ErrorBoundary 组件: 全局错误边界处理 - vite 配置优化: 添加 optimizeDeps 解决动态导入问题 - 交易历史和连接按钮改进 技术改进: - 使用 useReadContract/useReadContracts 批量读取合约数据 - 改进 parseError 函数处理 ccip 模块加载失败 - 添加测试状态管理 (isTestRunning, testTypeRef) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
"common": {
|
||||
"connectWallet": "Connect Wallet",
|
||||
"disconnect": "Disconnect",
|
||||
"connecting": "Connecting",
|
||||
"forceConnect": "Reset",
|
||||
"forceConnectHint": "Clear cache and reconnect if normal connection fails",
|
||||
"processing": "Processing...",
|
||||
"confirm": "Confirm",
|
||||
"cancel": "Cancel",
|
||||
@@ -57,7 +60,12 @@
|
||||
"youWillReceive": "You will receive",
|
||||
"approveWusd": "Approve WUSD",
|
||||
"buy": "Buy YT",
|
||||
"sell": "Sell YT"
|
||||
"sell": "Sell YT",
|
||||
"redeemStatus": "Redeem Status",
|
||||
"redeemAvailable": "Available",
|
||||
"redeemNotAvailable": "Not Available",
|
||||
"redeemLocked": "Redemption Locked",
|
||||
"timeRemaining": "Time Remaining"
|
||||
},
|
||||
"factory": {
|
||||
"title": "Factory Management",
|
||||
@@ -99,6 +107,7 @@
|
||||
"txSubmitted": "Transaction submitted",
|
||||
"txSuccess": "Transaction successful",
|
||||
"txFailed": "Transaction failed",
|
||||
"txTimeout": "Transaction timeout, please try again",
|
||||
"copySuccess": "Copied to clipboard",
|
||||
"walletError": "Wallet error",
|
||||
"networkError": "Network error",
|
||||
@@ -195,6 +204,9 @@
|
||||
"testSwapSame": "Swap Same Token",
|
||||
"testSwapSameDesc": "Test swapYT(YT-A, YT-A, amount, 0, receiver)",
|
||||
"testSwapExceed": "Swap Exceed Balance",
|
||||
"testSwapExceedDesc": "Swap amount exceeding token balance"
|
||||
"testSwapExceedDesc": "Swap amount exceeding token balance",
|
||||
"yourTokenBalances": "Your Token Balances",
|
||||
"whitelisted": "Whitelisted",
|
||||
"notWhitelisted": "Not Whitelisted"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user