Fix AreTransactionFeesLow() logic
MODIFY
WalletWasabi.Fluent/Helpers/TransactionFeeHelper.cs
WalletWasabi.Fluent/Helpers/TransactionFeeHelper.cs
@@ -39,7 +39,7 @@ namespace WalletWasabi.Fluent.Helpers
var first = feeEstimates.First();
var last = feeEstimates.Last();
- return first.Value != last.Value;
+ return first.Value == last.Value;
}
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionPreviewViewModel.cs
@@ -50,7 +50,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
AddressText = info.Address.ToString();
PayJoinUrl = info.PayJoinClient?.PaymentUrl.AbsoluteUri;
IsPayJoin = PayJoinUrl is not null;
- AdjustFeeAvailable = TransactionFeeHelper.AreTransactionFeesLow(_wallet);
+ AdjustFeeAvailable = !TransactionFeeHelper.AreTransactionFeesLow(_wallet);
if (PreferPsbtWorkflow)
{
@@ -173,7 +173,6 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
{
return false;
}
-
}
return true;
@@ -306,7 +305,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
Observable
.FromEventPattern(_wallet.FeeProvider, nameof(_wallet.FeeProvider.AllFeeEstimateChanged))
- .Subscribe(_ => AdjustFeeAvailable = TransactionFeeHelper.AreTransactionFeesLow(_wallet))
+ .Subscribe(_ => AdjustFeeAvailable = !TransactionFeeHelper.AreTransactionFeesLow(_wallet))
.DisposeWith(disposables);
if (!isInHistory)

Fix AreTransactionFeesLow() logic