Component: Token Icon (Wallet + Bridge) #1530
Replies: 3 comments 9 replies
-
To cut time to release a token, is it possible to also use unicode to generate the icon? https://unicode-table.com/en/blocks/ |
Beta Was this translation helpful? Give feedback.
-
Looks nice, but what about some services that rounds the icons, like https://coinmarketcap.com/ ? Prepended modifier may not be shown correctly. |
Beta Was this translation helpful? Give feedback.
-
Alright so @djsatok made a great point that third party exchanges are going to have limitations of their own for how they choose to display token icons. It's in our best interest to avoid any scenarios where any visual elements from our approach might get clipped. The standard for displaying token icons in 3rd party exchanges and wallets currently is a 24px ellipse. It's safe to assume that anything outside of this is at risk of not being displayed properly. To account for this, I think we'll be pretty limited in how we choose to differentiate between an unmodified and modified token. I propose that a modified token receive the following treatments:
While in isolation, this approach isn't as descriptive as the initial proposal, we'll need to rely on the token symbol (eg Here is what this looks like in practice: |
Beta Was this translation helpful? Give feedback.
-
Problem Summary
The wallet and bridge teams are in need of a standard for how to display token icons. With the addition of
icon
in the token contract metadata, we now have an option for token contracts to support an icon. With its addition, we need to consider the following:This discussion is related to:
Solution
The following guideline is an attempt to outline a simple but flexible system to display token icons in the context of an interface. My suggestion is that we create a component that takes the icon provided by the contract (if provided), and displays it in various states depending on if and how the token has been modified.
cc @chadoh @djsatok @vgrichina @Patrick1904
Beta Was this translation helpful? Give feedback.
All reactions