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

Feature/number formatting #466

Merged

Conversation

crypto-engineer
Copy link
Contributor

@crypto-engineer crypto-engineer commented Aug 22, 2022

Added utilities:

  • formatNumber
  • formatPercentage (0.1 -> 10%)

@vercel
Copy link

vercel bot commented Aug 22, 2022

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

Name Status Preview Updated
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Aug 24, 2022 at 8:25AM (UTC)
interbtc-ui-interlay-testnet ✅ Ready (Inspect) Visit Preview Aug 24, 2022 at 8:25AM (UTC)
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Aug 24, 2022 at 8:25AM (UTC)
interbtc-ui-kintsugi-testnet ✅ Ready (Inspect) Visit Preview Aug 24, 2022 at 8:25AM (UTC)

@crypto-engineer crypto-engineer marked this pull request as draft August 22, 2022 09:59
@crypto-engineer crypto-engineer self-assigned this Aug 22, 2022
@github-actions
Copy link

Running Lighthouse audit...

@crypto-engineer crypto-engineer added bug Something isn't working enhancement New feature or request labels Aug 22, 2022
@crypto-engineer
Copy link
Contributor Author

crypto-engineer commented Aug 22, 2022

  • Test displayMonetaryAmount cases (regression test)
  • issue_page.confirmations
  • toHuman -> returning number
  • displayMonetaryAmountInUSDFormat
  • safeRoundTwoDecimals cases
  • %

Copy link
Collaborator

@tomjeatt tomjeatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :) one comment, not a blocker

src/component-library/VaultCard/VaultCard.tsx Outdated Show resolved Hide resolved
feat: update number formatting cases

feat: update number formatting cases

chore: mark an edge case

chore: mark an edge case

feat: update number formatting cases

feat: update number formatting cases

feat: update number formatting cases

fix: correct getCollateralization

feat: update number formatting cases

chore: clean up

chore: clean up

fix: update Vault

chore: clean up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants