safe-react icon indicating copy to clipboard operation
safe-react copied to clipboard

[Epic] Use tokenlists to verify ERC20 assets

Open schmanu opened this issue 2 years ago • 0 comments

Overview

We want to improve spam token management by using the Uniswap tokenlists to verify ERC20 assets. Using these lists we will include a parameter for the backend which will only return assets which are verified by at least one tokenlist. There should be a way in the UI (e.g. toggle, tab view, etc.) to also display unverified assets circumventing this new filter. Additionally we want to display a small badge next to each ERC20 token indicating if the asset is verified or not:

  • green badge: verified by more than one list
  • yellow badge: verified by exactly one list
  • red badge: not verified by any list

When a user tries to create transactions involving unverified assets a warning should be displayed which the user has to dismiss before being able to create those transactions in the UI

Dependencies

Backend services need to provide:

  • a new paramter to retrieve only the balance of verified assets.
  • TokenInfo must include on which token lists the token is verified
  • ChainInfo should include the info if tokenlist verification is available for the selected chainId

Requirements

  • [ ] by default only show verified tokens
  • [ ] add option / screen to show all tokens
  • [ ] add badges to token symbols
  • [ ] warn before transferring unverified tokens

Designs

TODO

Here are some quick prototyping versions of the badge Mock_not_verified Mock_verified

Links

Problem Statement

schmanu avatar Jun 09 '22 13:06 schmanu