diff --git a/layer/utils/formatter.ts b/layer/utils/formatter.ts index e6fd9a89..58e4ec34 100644 --- a/layer/utils/formatter.ts +++ b/layer/utils/formatter.ts @@ -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 => {