feat: 完善工厂和金库管理功能
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>
This commit is contained in:
@@ -33,8 +33,10 @@
|
||||
"wusd": {
|
||||
"title": "WUSD Token",
|
||||
"mintAmount": "Mint Amount",
|
||||
"enterAmount": "Enter amount to mint",
|
||||
"mint": "Mint WUSD",
|
||||
"burnAmount": "Burn Amount",
|
||||
"enterAmount": "Enter amount",
|
||||
"mint": "Mint",
|
||||
"burn": "Burn",
|
||||
"minting": "Minting...",
|
||||
"confirming": "Confirming...",
|
||||
"mintSuccess": "Mint successful!"
|
||||
@@ -65,12 +67,33 @@
|
||||
"redeemAvailable": "Available",
|
||||
"redeemNotAvailable": "Not Available",
|
||||
"redeemLocked": "Redemption Locked",
|
||||
"timeRemaining": "Time Remaining"
|
||||
"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",
|
||||
@@ -91,7 +114,27 @@
|
||||
"selectVault": "Select Vault",
|
||||
"newWusdPrice": "New WUSD Price",
|
||||
"newYtPrice": "New YT Price",
|
||||
"update": "Update Prices"
|
||||
"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",
|
||||
@@ -136,7 +179,9 @@
|
||||
"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",
|
||||
@@ -207,6 +252,18 @@
|
||||
"testSwapExceedDesc": "Swap amount exceeding token balance",
|
||||
"yourTokenBalances": "Your Token Balances",
|
||||
"whitelisted": "Whitelisted",
|
||||
"notWhitelisted": "Not 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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user