Skip to content

Commit

Permalink
feat: set the balance to 5 decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter committed Dec 6, 2024
1 parent 6d2c88c commit 00f5220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/transfer/TransferTokenForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function RecipientSection({ isReview }: { isReview: boolean }) {
}

function TokenBalance({ label, balance }: { label: string; balance?: TokenAmount | null }) {
const value = balance?.getDecimalFormattedAmount().toFixed(4) || '0';
const value = balance?.getDecimalFormattedAmount().toFixed(5) || '0';
return <div className="text-right text-xs text-gray-600">{`${label}: ${value}`}</div>;
}

Expand Down

0 comments on commit 00f5220

Please sign in to comment.