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

fix(components): fix native token label formatting #117

Merged
merged 7 commits into from
Jan 26, 2023

Conversation

tansawit
Copy link
Contributor

@tansawit tansawit commented Jan 23, 2023

Describe your changes

In most places right now, we're assuming that the only native tokens that will be rendered are uTokens (uosmo, uion, etc.). However, for certain chains like Osmosis, certain IBC and other native tokens can also be used as gas fees etc. This PR add support for those cases.

Changes:

  • Unify native token label formatting into one function getTokenLabel
  • Add cases for formatting non "uTokens" (e.g. IBC, tokenfactory module tokens, etc.)
  • switch all instances of formatUDenom to use getTokenLabel

@vercel
Copy link

vercel bot commented Jan 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
celatone-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 26, 2023 at 3:37AM (UTC)
osmosis-celatone-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 26, 2023 at 3:37AM (UTC)
terra-celatone-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Jan 26, 2023 at 3:37AM (UTC)
5 Ignored Deployments
Name Status Preview Comments Updated
celatone-custom-chain-temp ⬜️ Ignored (Inspect) Jan 26, 2023 at 3:37AM (UTC)
celatone-frontend ⬜️ Ignored (Inspect) Jan 26, 2023 at 3:37AM (UTC)
celatone-frontend-initial-demo ⬜️ Ignored (Inspect) Jan 26, 2023 at 3:37AM (UTC)
osmosis-celatone-frontend ⬜️ Ignored (Inspect) Jan 26, 2023 at 3:37AM (UTC)
terra-celatone-frontend ⬜️ Ignored (Inspect) Jan 26, 2023 at 3:37AM (UTC)

@bkioshn bkioshn requested a review from evilpeach January 23, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants