Skip to content

Commit

Permalink
fix: use 6 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Oct 21, 2024
1 parent ac97dbe commit e366b3c
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: 5,
maximumFractionDigits: 5,
maximumSignificantDigits: 6,
maximumFractionDigits: 6,
useGrouping: false,
})

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

0 comments on commit e366b3c

Please sign in to comment.