Remove dead code in WalletBalanceTileViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -21,13 +21,11 @@ public partial class WalletBalanceTileViewModel : TileViewModel
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balanceBtc;
[AutoNotify(SetterModifier = AccessModifier.Private)] private decimal _balanceFiat;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balancePrivateBtc;
- [AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balanceNonPrivateBtc;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionName;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionDate;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionStatus;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _showRecentTransaction;
[AutoNotify(SetterModifier = AccessModifier.Private)] private bool _hasBalance;
- [AutoNotify] private double _percentPrivate;
public WalletBalanceTileViewModel(WalletViewModel walletVm)
{
@@ -61,20 +59,12 @@ public partial class WalletBalanceTileViewModel : TileViewModel
var privateThreshold = _wallet.AnonScoreTarget;
var privateCoins = _wallet.Coins.FilterBy(x => x.HdPubKey.AnonymitySet >= privateThreshold);
- var normalCoins = _wallet.Coins.FilterBy(x => x.HdPubKey.AnonymitySet < privateThreshold);
-
var privateDecimalAmount = privateCoins.TotalAmount();
- var totalDecimalAmount = _wallet.Coins.TotalAmount();
HasBalance = totalAmount > Money.Zero;
BalancePrivateBtc = privateDecimalAmount
.FormattedBtc() + " BTC";
-
- BalanceNonPrivateBtc = normalCoins.TotalAmount().ToDecimal(MoneyUnit.BTC)
- .FormattedBtc() + " BTC";
-
- PercentPrivate = totalDecimalAmount.ToDecimal(MoneyUnit.BTC) == 0M ? 0d : (double)(privateDecimalAmount.ToDecimal(MoneyUnit.BTC) / totalDecimalAmount.ToDecimal(MoneyUnit.BTC));
}
private void UpdateRecentTransaction()

Remove dead code in WalletBalanceTileViewModel