fix: remove includeDuplicateSymbolAssets filter #4768
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
What motivates this change is this user report MetaMask/metamask-extension#27614
Based on discussions we had with teams; seems like initially, we added the
includeDuplicateSymbolAssetsbecause there were concerns around duplicate symbols being scammy and the increased size of tokenList.For the duplicate symbols being scammy concern; i think our usage of
occurrencesFloor=3is helping us filter out any scam tokens.Having tokens with the same symbol is not unusual and it does not necessarily mean that the token is a scam.
For the tokenList size; we thought that; today; the tokenList we get without
includeDuplicateSymbolAssetshas around 4500 tokens. With theincludeDuplicateSymbolAssetsit has around 4000. Which does not seem like it should have a huge impact. We thought that token the tokenList size would increase regardless in future, and if users add their tokens to lists and expect to see them we should not be filtering them out even if they have duplicates.References
Changelog
@metamask/assets-controllersincludeDuplicateSymbolAssetsin our api call to token-api.Checklist