Skip to content

Commit

Permalink
fix: increase fractional and significant digits (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov authored Oct 21, 2024
1 parent 6518082 commit 06e4df6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/widget/src/utils/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ const subscriptMap = ['₀', '₁', '₂', '₃', '₄', '₅', '₆', '₇', '
export const precisionFormatter = new Intl.NumberFormat('en', {
notation: 'standard',
roundingPriority: 'morePrecision',
maximumSignificantDigits: 4,
maximumFractionDigits: 4,
maximumSignificantDigits: 6,
maximumFractionDigits: 6,
useGrouping: false,
})

/**
* Format token amount to at least 4 decimals.
* Format token amount to at least 6 decimals.
* @param amount amount to format.
* @returns formatted amount.
*/
Expand Down

0 comments on commit 06e4df6

Please sign in to comment.