From dbb287b814a30bd07d53377cfb476fcac10e0dbf Mon Sep 17 00:00:00 2001 From: Sofio Date: Tue, 16 Dec 2025 08:32:20 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E8=BE=B9=E7=95=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=A2=84=E6=9C=9F=E9=94=99=E8=AF=AF=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据合约文档修正各面板边界测试的预期错误类型: VaultPanel: - sell_exceed_balance: InsufficientYT → InsufficientYTA WUSDPanel: - mint_zero: InvalidAmount → MaySucceed (标准ERC20无此检查) FactoryPanel: - set_manager_not_owner: Forbidden → OwnableUnauthorizedAccount LPPanel: - add_exceed_balance: InsufficientBalance → ERC20InsufficientBalance - remove_exceed_balance: InsufficientBalance → ERC20InsufficientBalance - swap_same_token: SameToken → MaySucceed (合约无此错误定义) - swap_exceed_balance: InsufficientBalance → ERC20InsufficientBalance - remove_high_minout: 修复测试逻辑,使用用户实际余额 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/components/FactoryPanel.tsx | 2 +- frontend/src/components/LPPanel.tsx | 15 +++++++++------ frontend/src/components/VaultPanel.tsx | 2 +- frontend/src/components/WUSDPanel.tsx | 2 +- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/FactoryPanel.tsx b/frontend/src/components/FactoryPanel.tsx index 021244b..5762f3b 100644 --- a/frontend/src/components/FactoryPanel.tsx +++ b/frontend/src/components/FactoryPanel.tsx @@ -336,7 +336,7 @@ export function FactoryPanel() {
{t('test.setManagerNotOwner')} - Forbidden + OwnableUnauthorizedAccount

{t('test.setManagerNotOwnerDesc')}