Files
Heyue_test/frontend
Sofio dbb287b814 fix: 修正边界测试预期错误标签
根据合约文档修正各面板边界测试的预期错误类型:

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 <noreply@anthropic.com>
2025-12-16 08:32:20 +00:00
..

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])