TokenLogo component, displays a token logo based on the provided token object.
Native tokens (detected via isNativeToken(token.address), a case-insensitive
match against env.PUBLIC_NATIVE_TOKEN_ADDRESS) render the chain-specific icon
from @web3icons/react when the chain is mapped in nativeTokenIcons. Otherwise
the component renders logoURI as an image, falling back to the colored-letter
Placeholder on load failure or missing URI.
TokenLogo component, displays a token logo based on the provided token object.
Native tokens (detected via
isNativeToken(token.address), a case-insensitive match againstenv.PUBLIC_NATIVE_TOKEN_ADDRESS) render the chain-specific icon from@web3icons/reactwhen the chain is mapped innativeTokenIcons. Otherwise the component renderslogoURIas an image, falling back to the colored-letter Placeholder on load failure or missing URI.