Notify when fee% is higher than 100
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -597,7 +597,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
if (IsMax)
{
AmountText = AllSelectedAmount == Money.Zero
- ? "No Coins Selected"
+ ? FeePercentage >= 100
+ ? "Too high fee"
+ : "No Coins Selected"
: $"~ {AllSelectedAmount.ToString(false, true)}";
}
}
@@ -658,6 +660,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
FeePercentage = 100 * (decimal)EstimatedBtcFee.Satoshi / all;
}
+ else
+ {
+ FeePercentage = 0;
+ }
}
else
{

MODIFY
WalletWasabi.Gui/Converters/AmountForegroundConverter.cs
WalletWasabi.Gui/Converters/AmountForegroundConverter.cs
@@ -18,6 +18,7 @@ namespace WalletWasabi.Gui.Converters
return amount.StartsWith("~")
? Brushes.ForestGreen
: amount.Equals("No Coins Selected", StringComparison.OrdinalIgnoreCase)
+ || amount.Equals("Too high fee", StringComparison.OrdinalIgnoreCase)
? Brushes.IndianRed
: Brushes.White;
}

Notify when fee% is higher than 100