Send proper error message if we send a too small amount
MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -1038,6 +1038,10 @@ namespace WalletWasabi.Services
// 6. Do some checks
Money totalOutgoingAmountNoFee = realToSend.Select(x => x.amount).Sum();
+ if (totalOutgoingAmountNoFee == Money.Zero)
+ {
+ throw new InvalidOperationException($"The amount to send after fee is too small to be sent to your destination");
+ }
Money totalOutgoingAmount = totalOutgoingAmountNoFee + fee;
decimal feePc = (100 * fee.ToDecimal(MoneyUnit.BTC)) / totalOutgoingAmountNoFee.ToDecimal(MoneyUnit.BTC);

Send proper error message if we send a too small amount