Remove decimals from Balance Tile fiat amount when < 10
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -56,8 +56,13 @@ public partial class WalletBalanceTileViewModel : TileViewModel
BalanceBtc = $"{totalAmount.ToFormattedString()} BTC";
- BalanceFiat = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC)
- .GenerateFiatText(_wallet.Synchronizer.UsdExchangeRate, "USD");
+ var fiatAmount = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC) * _wallet.Synchronizer.UsdExchangeRate;
+ var fiatFormat =
+ fiatAmount >= 10
+ ? "N0"
+ : "N2";
+
+ BalanceFiat = fiatAmount.GenerateFiatText("USD", fiatFormat);
var privateThreshold = _wallet.KeyManager.MinAnonScoreTarget;
var privateCoins = _wallet.Coins.FilterBy(x => x.HdPubKey.AnonymitySet >= privateThreshold);

Remove decimals from Balance Tile fiat amount when < 10