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

update price display logic in UsdPrice component for better precision… #1165

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

trungbach
Copy link
Contributor

This pull request includes a change to the src/pages/UniversalSwap/Component/HeaderTab.tsx file to improve the display of USD prices in the UsdPrice component. The most important change is the modification of the price display logic to handle very small values more accurately.

Improvement to USD price display:

  • src/pages/UniversalSwap/Component/HeaderTab.tsx: Modified the headerTabSimple function to format priceUsd with up to 12 decimal places if the value is less than 10 ** -6. This ensures that very small USD prices are displayed more accurately.… handling

@trungbach trungbach merged commit 9e8da10 into main Feb 26, 2025
2 of 3 checks passed
@haunv3 haunv3 deleted the fix/display-small-price branch February 26, 2025 07:53
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.

3 participants