Factory 功能完善: - 添加 setDefaultHardCap 设置默认硬顶 - 添加 vaultImplementation 显示 - 添加批量操作: updateVaultPricesBatch, setHardCapBatch, setVaultNextRedemptionTimeBatch - 添加高级功能: setVaultImplementation, upgradeVault, upgradeVaultBatch - Owner 配置和批量操作区域 UI Vault 功能完善: - 添加 Manager 面板 (depositManagedAssets/withdrawForManagement) - 修复 Manager 存入托管资产需要授权的问题 - 添加 managedAssets 读取和显示 UI 优化: - 统一颜色方案 - 边界测试卡片式布局 - 可折叠区域统一样式 WUSD 功能: - 添加销毁功能 - 修复 gas 配置问题 翻译更新: - 添加所有新功能的中英文翻译 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
270 lines
9.9 KiB
JSON
270 lines
9.9 KiB
JSON
{
|
|
"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",
|
|
"loading": "Loading...",
|
|
"success": "Success!",
|
|
"error": "Error",
|
|
"balance": "Balance",
|
|
"amount": "Amount",
|
|
"contract": "Contract",
|
|
"address": "Address",
|
|
"network": "Arbitrum Sepolia",
|
|
"connectFirst": "Please connect wallet first"
|
|
},
|
|
"nav": {
|
|
"wusd": "WUSD",
|
|
"vaultTrading": "Vault Trading",
|
|
"factory": "Factory",
|
|
"lpPool": "LP Pool"
|
|
},
|
|
"header": {
|
|
"title": "YT Asset Test"
|
|
},
|
|
"footer": {
|
|
"description": "YT Asset Contract Testing Interface"
|
|
},
|
|
"wusd": {
|
|
"title": "WUSD Token",
|
|
"mintAmount": "Mint Amount",
|
|
"burnAmount": "Burn Amount",
|
|
"enterAmount": "Enter amount",
|
|
"mint": "Mint",
|
|
"burn": "Burn",
|
|
"minting": "Minting...",
|
|
"confirming": "Confirming...",
|
|
"mintSuccess": "Mint successful!"
|
|
},
|
|
"vault": {
|
|
"title": "Vault Trading",
|
|
"selectVault": "Select Vault",
|
|
"vaultInfo": "Vault Info",
|
|
"totalAssets": "Total Assets",
|
|
"idleAssets": "Idle Assets",
|
|
"totalSupply": "Total Supply",
|
|
"hardCap": "Hard Cap",
|
|
"wusdPrice": "WUSD Price",
|
|
"ytPrice": "YT Price",
|
|
"yourWusdBalance": "Your WUSD Balance",
|
|
"yourYtBalance": "Your YT Balance",
|
|
"buyYt": "Buy YT",
|
|
"sellYt": "Sell YT",
|
|
"wusdAmount": "WUSD Amount",
|
|
"ytAmount": "YT Amount",
|
|
"enterWusdAmount": "Enter WUSD amount",
|
|
"enterYtAmount": "Enter YT amount",
|
|
"youWillReceive": "You will receive",
|
|
"approveWusd": "Approve WUSD",
|
|
"buy": "Buy YT",
|
|
"sell": "Sell YT",
|
|
"redeemStatus": "Redeem Status",
|
|
"redeemAvailable": "Available",
|
|
"redeemNotAvailable": "Not Available",
|
|
"redeemLocked": "Redemption Locked",
|
|
"timeRemaining": "Time Remaining",
|
|
"adminConfig": "Admin Config",
|
|
"updatePrices": "Update Prices",
|
|
"setHardCap": "Set Hard Cap",
|
|
"setRedemptionTime": "Set Redemption Time",
|
|
"setManager": "Set Manager",
|
|
"newHardCap": "New Hard Cap",
|
|
"newManager": "New Manager Address",
|
|
"newRedemptionTime": "New Redemption Time",
|
|
"managerPanel": "Manager Panel",
|
|
"managedAssets": "Managed Assets",
|
|
"youAreManager": "You are the Manager of this vault",
|
|
"youAreNotManager": "You are not the Manager of this vault",
|
|
"depositManagedAssets": "Deposit Managed Assets",
|
|
"withdrawForManagement": "Withdraw For Management",
|
|
"deposit": "Deposit",
|
|
"withdraw": "Withdraw",
|
|
"toAddress": "To Address",
|
|
"defaultSelf": "default: self",
|
|
"approvedAmount": "Approved Amount",
|
|
"needApprove": "Need Approve"
|
|
},
|
|
"factory": {
|
|
"title": "Factory Management",
|
|
"factoryContract": "Factory Contract",
|
|
"owner": "Owner",
|
|
"vaultImpl": "Vault Implementation",
|
|
"defaultHardCap": "Default Hard Cap",
|
|
"totalVaults": "Total Vaults",
|
|
"yourRole": "Your Role",
|
|
"roleOwner": "Owner",
|
|
"roleUser": "User",
|
|
"allVaults": "All Vaults",
|
|
"noVaults": "No vaults created yet",
|
|
"createVault": "Create New Vault",
|
|
"name": "Name",
|
|
"symbol": "Symbol",
|
|
"managerAddress": "Manager Address",
|
|
"redemptionTime": "Redemption Time",
|
|
"initialWusdPrice": "Initial WUSD Price",
|
|
"initialYtPrice": "Initial YT Price",
|
|
"create": "Create Vault",
|
|
"updatePrices": "Update Vault Prices",
|
|
"vaultAddress": "Vault Address",
|
|
"selectVault": "Select Vault",
|
|
"newWusdPrice": "New WUSD Price",
|
|
"newYtPrice": "New YT Price",
|
|
"update": "Update Prices",
|
|
"ownerConfig": "Owner Config",
|
|
"setDefaultHardCap": "Set Default Hard Cap",
|
|
"batchOperations": "Batch Operations",
|
|
"selectVaultsForBatch": "Select Vaults",
|
|
"selectAll": "Select All",
|
|
"deselectAll": "Deselect All",
|
|
"selectedCount": "Selected",
|
|
"batchUpdatePrices": "Batch Update Prices",
|
|
"batchSetHardCap": "Batch Set Hard Cap",
|
|
"batchSetRedemptionTime": "Batch Set Redemption Time",
|
|
"advancedFunctions": "Advanced Functions",
|
|
"advancedWarning": "Warning: These are advanced management functions. Please ensure you understand the implications before proceeding. Incorrect operations may cause contract issues.",
|
|
"setVaultImplementation": "Set Vault Implementation",
|
|
"currentImpl": "Current Implementation",
|
|
"upgradeVault": "Upgrade Vault",
|
|
"newImplAddress": "New Implementation Address",
|
|
"upgrade": "Upgrade",
|
|
"batchUpgradeVault": "Batch Upgrade Vaults",
|
|
"batchUpgrade": "Batch Upgrade",
|
|
"selectInBatchSection": "select in batch section"
|
|
},
|
|
"language": {
|
|
"en": "English",
|
|
"zh": "Chinese"
|
|
},
|
|
"history": {
|
|
"title": "Transaction History",
|
|
"empty": "No transactions yet",
|
|
"clear": "Clear",
|
|
"viewMore": "View More"
|
|
},
|
|
"toast": {
|
|
"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",
|
|
"insufficientBalance": "Insufficient balance",
|
|
"userRejected": "User rejected the transaction"
|
|
},
|
|
"test": {
|
|
"title": "Boundary Test",
|
|
"currentStatus": "Current Status",
|
|
"canRedeem": "Can Redeem",
|
|
"timeToRedeem": "Time to Redeem",
|
|
"hardCap": "Hard Cap",
|
|
"role": "Your Role",
|
|
"yes": "Yes",
|
|
"no": "No",
|
|
"customAmount": "Custom Amount",
|
|
"transferAddress": "Transfer Address",
|
|
"boundaryTests": "Boundary Tests",
|
|
"boundaryHint": "These tests are designed to trigger contract errors. Expected errors are shown for each test.",
|
|
"permissionTests": "Permission Tests",
|
|
"permissionHint": "Test permission restrictions. Should fail if you're not Owner/Manager.",
|
|
"managerTests": "Manager Functions",
|
|
"managerHint": "Manager-only functions. Current Manager: ",
|
|
"normalTests": "Normal Functions",
|
|
"quickActions": "Quick Actions",
|
|
"run": "Run",
|
|
"running": "Running...",
|
|
"mint10000": "Mint 10000 WUSD",
|
|
"mint10000Desc": "Quick mint 10000 test WUSD",
|
|
"maxApprove": "Max Approve WUSD",
|
|
"maxApproveDesc": "Approve max uint256 amount",
|
|
"buyZero": "Buy Amount 0",
|
|
"buyZeroDesc": "Test depositYT(0)",
|
|
"sellZero": "Sell Amount 0",
|
|
"sellZeroDesc": "Test withdrawYT(0)",
|
|
"buyExceedBalance": "Buy Exceed Balance",
|
|
"buyExceedBalanceDesc": "Buy more than WUSD balance",
|
|
"sellExceedBalance": "Sell Exceed Balance",
|
|
"sellExceedBalanceDesc": "Sell more than YT balance",
|
|
"buyExceedHardcap": "Buy Exceed Hardcap",
|
|
"buyExceedHardcapDesc": "Buy amount exceeds vault hardcap",
|
|
"sellInLock": "Sell In Lock Period",
|
|
"sellInLockDesc": "Try to sell during lock period",
|
|
"mintZero": "Mint Amount 0",
|
|
"mintZeroDesc": "Test mint(0)",
|
|
"burnExceed": "Burn Exceed Balance",
|
|
"burnExceedDesc": "Burn more than balance",
|
|
"updatePriceNotOwner": "Update Price (Not Owner)",
|
|
"updatePriceNotOwnerDesc": "Non-owner calls updateVaultPrices",
|
|
"setManagerNotOwner": "Set Manager (Not Owner)",
|
|
"setManagerNotOwnerDesc": "Non-owner calls setVaultManager"
|
|
},
|
|
"lp": {
|
|
"title": "YT Liquidity Pool",
|
|
"rewardRouter": "Reward Router Contract",
|
|
"ytLPToken": "ytLP Token",
|
|
"poolAUM": "Pool AUM",
|
|
"ytLPPrice": "ytLP Price",
|
|
"totalSupply": "Total Supply",
|
|
"yourBalance": "Your Balance",
|
|
"cooldownRemaining": "Cooldown Remaining",
|
|
"noCooldown": "No cooldown",
|
|
"addLiquidity": "Add Liquidity",
|
|
"addLiquidityDesc": "Deposit YT tokens or WUSD to receive ytLP tokens",
|
|
"removeLiquidity": "Remove Liquidity",
|
|
"removeLiquidityDesc": "Burn ytLP to get tokens back",
|
|
"swapTokens": "Swap Tokens",
|
|
"swapDesc": "Swap between YT tokens and WUSD in the pool",
|
|
"selectToken": "Select Token",
|
|
"amount": "Amount",
|
|
"slippage": "Slippage Tolerance",
|
|
"approveToken": "Approve Token",
|
|
"approveYtLP": "Approve ytLP",
|
|
"outputToken": "Output Token",
|
|
"ytLPAmount": "ytLP Amount",
|
|
"max": "Max",
|
|
"fromToken": "From Token",
|
|
"toToken": "To Token",
|
|
"swap": "Swap",
|
|
"cooldownNotPassed": "Cooldown not passed, please try later",
|
|
"insufficientOutput": "Insufficient output amount",
|
|
"cooldownWarning": "Cooldown remaining {{time}}, cannot remove liquidity yet",
|
|
"boundaryHint": "These tests are designed to trigger LP contract errors. Expected errors are shown for each test.",
|
|
"testAddZero": "Add Liquidity Zero",
|
|
"testAddZeroDesc": "Test addLiquidity(token, 0, 0, 0)",
|
|
"testAddExceed": "Add Exceed Balance",
|
|
"testAddExceedDesc": "Add liquidity exceeding token balance",
|
|
"testRemoveZero": "Remove Liquidity Zero",
|
|
"testRemoveZeroDesc": "Test removeLiquidity(token, 0, 0, receiver)",
|
|
"testRemoveExceed": "Remove Exceed Balance",
|
|
"testRemoveExceedDesc": "Remove liquidity exceeding ytLP balance",
|
|
"testRemoveHighMinout": "Remove High MinOut",
|
|
"testRemoveHighMinoutDesc": "Set impossible minimum output amount",
|
|
"testSwapZero": "Swap Amount Zero",
|
|
"testSwapZeroDesc": "Test swapYT(tokenIn, tokenOut, 0, 0, receiver)",
|
|
"testSwapSame": "Swap Same Token",
|
|
"testSwapSameDesc": "Test swapYT(YT-A, YT-A, amount, 0, receiver)",
|
|
"testSwapExceed": "Swap Exceed Balance",
|
|
"testSwapExceedDesc": "Swap amount exceeding token balance",
|
|
"yourTokenBalances": "Your Token Balances",
|
|
"whitelisted": "Whitelisted",
|
|
"notWhitelisted": "Not Whitelisted",
|
|
"emergencyMode": "Emergency Mode",
|
|
"emergencyModeOn": "ON (Warning)",
|
|
"emergencyModeOff": "Normal",
|
|
"swapEnabled": "Swap Function",
|
|
"swapEnabledOn": "Enabled",
|
|
"swapEnabledOff": "Disabled",
|
|
"totalTokenWeights": "Total Weights",
|
|
"accountValue": "Your Account Value",
|
|
"usdyAmount": "USDY Amount",
|
|
"isStableToken": "Stable Token",
|
|
"setStableToken": "Set Stable Token",
|
|
"stableTokenHint": "Mark token as stable, affects price calculation"
|
|
}
|
|
}
|