Skip to content

Commit

Permalink
feat: use 5 decimals for the displayed balance (#345)
Browse files Browse the repository at this point in the history
From #342
  • Loading branch information
tkporter authored Dec 6, 2024
1 parent 6d2c88c commit b2c1d08
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 b2c1d08

Please sign in to comment.