-
Notifications
You must be signed in to change notification settings - Fork 39
feat(frontend): Remove loading of ERC20 user tokens #11028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(frontend): Remove loading of ERC20 user tokens #11028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request removes the deprecated ERC20 user tokens loading functionality from the frontend codebase. User tokens are being phased out in favor of custom tokens.
Key changes:
- Removed
loadErc20UserTokensfunction and all related user token loading logic - Removed over 200 lines of tests for user token loading functionality
- Updated
loadErc20Tokensto only load default and custom tokens - Cleaned up deprecated type definitions in
user-token.ts
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
src/frontend/src/eth/services/erc20.services.ts |
Removed user token loading functions, updated imports, and simplified the main loadErc20Tokens function to only load default and custom tokens |
src/frontend/src/lib/types/user-token.ts |
Removed deprecated LoadUserTokenParams type definition |
src/frontend/src/tests/eth/services/erc20.services.spec.ts |
Removed comprehensive test suite for loadErc20UserTokens functionality (198 lines) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Motivation
User tokens are deprecated, so we can easily remove them from the flow to load ERC20 tokens.