Skip to content

Commit

Permalink
chore: layer add default decimal place on formatter function
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Jan 16, 2024
1 parent ac7456b commit 20e34b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layer/utils/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export const sharedConvertTimestampToMilliseconds = (

export const sharedToBalanceInToken = ({
value,
decimalPlaces,
fixedDecimals,
roundingMode
roundingMode,
decimalPlaces = 18
}: {
value: string | number
decimalPlaces: number
decimalPlaces?: number
fixedDecimals?: number
roundingMode?: BigNumber.RoundingMode
}): string => {
Expand Down

0 comments on commit 20e34b4

Please sign in to comment.