fix usage everywhere
MODIFY
WalletWasabi.Fluent/Helpers/CoinHelpers.cs
WalletWasabi.Fluent/Helpers/CoinHelpers.cs
@@ -19,7 +19,7 @@ public static class CoinHelpers
public static SmartLabel GetLabels(this SmartCoin coin, int privateThreshold)
{
- if (coin.IsPrivate(privateThreshold) || coin.IsSemiPrivate())
+ if (coin.IsPrivate(privateThreshold) || coin.IsSemiPrivate(privateThreshold))
{
return SmartLabel.Empty;
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyBarItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyBarItemViewModel.cs
@@ -17,8 +17,9 @@ public class PrivacyBarItemViewModel : ViewModelBase, IDisposable
{
Coin = new WalletCoinViewModel(coin);
- IsPrivate = coin.IsPrivate(parent.Wallet.AnonScoreTarget);
- IsSemiPrivate = !IsPrivate && coin.IsSemiPrivate();
+ var anonScore = parent.Wallet.AnonScoreTarget;
+ IsPrivate = coin.IsPrivate(anonScore);
+ IsSemiPrivate = coin.IsSemiPrivate(anonScore);
IsNonPrivate = !IsPrivate && !IsSemiPrivate;
Data = new RectangleGeometry
@@ -29,8 +30,9 @@ public class PrivacyBarItemViewModel : ViewModelBase, IDisposable
public PrivacyBarItemViewModel(Pocket pocket, Wallet wallet, double start, double width)
{
- IsPrivate = pocket.Coins.All(x => x.IsPrivate(wallet.AnonScoreTarget));
- IsSemiPrivate = !IsPrivate && pocket.Coins.All(x => x.IsSemiPrivate());
+ var anonScore = wallet.AnonScoreTarget;
+ IsPrivate = pocket.Coins.All(x => x.IsPrivate(anonScore));
+ IsSemiPrivate = pocket.Coins.All(x => x.IsSemiPrivate(anonScore));
IsNonPrivate = !IsPrivate && !IsSemiPrivate;
Data = new RectangleGeometry

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/PrivacyRing/PrivacyRingItemViewModel.cs
@@ -21,8 +21,9 @@ public class PrivacyRingItemViewModel : IPrivacyRingPreviewItem, IDisposable
Data = CreateGeometry(start, end, OuterRadius);
- IsPrivate = coin.IsPrivate(parent.Wallet.AnonScoreTarget);
- IsSemiPrivate = !IsPrivate && coin.IsSemiPrivate();
+ var anonScore = parent.Wallet.AnonScoreTarget;
+ IsPrivate = coin.IsPrivate(anonScore);
+ IsSemiPrivate = coin.IsSemiPrivate(anonScore);
IsNonPrivate = !IsPrivate && !IsSemiPrivate;
AmountText = $"{Coin.Amount.ToFormattedString()} BTC";
Unconfirmed = !coin.Confirmed;
@@ -42,8 +43,9 @@ public class PrivacyRingItemViewModel : IPrivacyRingPreviewItem, IDisposable
Data = CreateGeometry(start, end, OuterRadius);
- IsPrivate = pocket.Coins.All(x => x.IsPrivate(parent.Wallet.AnonScoreTarget));
- IsSemiPrivate = !IsPrivate && pocket.Coins.All(x => x.IsSemiPrivate());
+ var anonScore = parent.Wallet.AnonScoreTarget;
+ IsPrivate = pocket.Coins.All(x => x.IsPrivate(anonScore));
+ IsSemiPrivate = pocket.Coins.All(x => x.IsSemiPrivate(anonScore));
IsNonPrivate = !IsPrivate && !IsSemiPrivate;
AmountText = $"{pocket.Amount.ToFormattedString()} BTC";
Unconfirmed = false;

fix usage everywhere