Skip to content
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

[Redesign] Fixing which tokens to display whether a wallet is connected #2694

Conversation

emreboga
Copy link
Collaborator

@emreboga emreboga commented Sep 23, 2024

This PR displays all tokens supported when no wallet is connected; and the ones with a balance when a wallet is connected. Please see the loom below for details.

Fixes #2674

https://www.loom.com/share/8c78bd459de442b58193e6c2ff93dc03?sid=5cd50d11-a606-4914-99f6-aa92712e3221

Copy link

netlify bot commented Sep 23, 2024

👷 Deploy request for wormhole-connect pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7f16966

Copy link

netlify bot commented Sep 23, 2024

👷 Deploy request for wormhole-connect-mainnet pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7f16966

@emreboga emreboga force-pushed the emre/redesign-fix-tokens-list branch 4 times, most recently from 6aabcf1 to df9ce31 Compare September 24, 2024 09:47
artursapek
artursapek previously approved these changes Sep 24, 2024
@Wesleyleung
Copy link
Collaborator

Categories of tokens that should be included in defaults when wallet is not connected:

  • Gas token for the chain (ETH on Ethereum, Avax on Avalanche, Pol on Polygon, Sui on Sui, etc)
  • Canonical wrapped version of gas token for its chain (eg. WETH on Ethereum, WFTM on Fantom)
  • Native stablecoins (USDC and USDT)
  • Canonical versions of stablecoins if native does not yet exist (eg. wUSDC on Sui, USDC.e on Fantom)
  • Any tokens integrators have configured

Frankenstein tokens and regular Wormhole-wrapped tokens that are not otherwise part of the above (ie. treated as canonical) should not be included.

When a wallet is connected, then show whatever the user has a balance of.

Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
@emreboga emreboga merged commit 0c0b803 into wormhole-foundation:development Sep 24, 2024
8 checks passed
@emreboga emreboga deleted the emre/redesign-fix-tokens-list branch September 24, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QA] Token list is incomplete when wallet is not connected
4 participants