diff --git a/src/utils/numbers.ts b/src/utils/numbers.ts index 20bfbfa5..ded0e0d9 100644 --- a/src/utils/numbers.ts +++ b/src/utils/numbers.ts @@ -26,10 +26,8 @@ export function formatTokenValue(amount: Decimal, maxDecimals = 4): string { let formattedAmount: string; const decimalPart = amount.toFixed().split('.')[1] || ''; - console.log('amount', amount); - if (amount.equals(amount.floor())) { - formattedAmount = amount.toFixed(1); + formattedAmount = amount.toFixed(2); } else if (decimalPart.length > maxDecimals) { // If the decimal part exceeds maxDecimals, display only maxDecimals decimal places formattedAmount = amount.toFixed(maxDecimals, Decimal.ROUND_DOWN); @@ -38,7 +36,5 @@ export function formatTokenValue(amount: Decimal, maxDecimals = 4): string { formattedAmount = amount.toString(); } - console.log('formattedAmount', formattedAmount); - return formattedAmount; }