Rename BtcFee to EstimatedBtcFee
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendTabViewModel.cs
@@ -42,7 +42,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
private string _confirmationExpectedText;
private string _feeText;
private decimal _usdFee;
- private Money _btcFee;
+ private Money _estimatedBtcFee;
private Money _satoshiPerByteFeeRate;
private decimal _feePercentage;
private decimal _usdExchangeRate;
@@ -601,7 +601,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
break;
case FeeDisplayFormat.BTC:
- FeeText = $"(~ {BtcFee.ToString(false, false)} BTC)";
+ FeeText = $"(~ {EstimatedBtcFee.ToString(false, false)} BTC)";
FeeToolTip = "Estimated total fees in BTC.";
break;
@@ -677,30 +677,30 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
- BtcFee = Money.Satoshis(vsize * SatoshiPerByteFeeRate);
+ EstimatedBtcFee = Money.Satoshis(vsize * SatoshiPerByteFeeRate);
long all = selectedCoins.Sum(x => x.Amount);
if (IsMax)
{
if (all != 0)
{
- FeePercentage = 100 * (decimal)BtcFee.Satoshi / all;
+ FeePercentage = 100 * (decimal)EstimatedBtcFee.Satoshi / all;
}
}
else
{
if (Money.TryParse(Amount.TrimStart('~', ' '), out Money amount) && amount.Satoshi != 0)
{
- FeePercentage = 100 * (decimal)BtcFee.Satoshi / amount.Satoshi;
+ FeePercentage = 100 * (decimal)EstimatedBtcFee.Satoshi / amount.Satoshi;
}
}
if (UsdExchangeRate != 0)
{
- UsdFee = BtcFee.ToUsd(UsdExchangeRate);
+ UsdFee = EstimatedBtcFee.ToUsd(UsdExchangeRate);
}
- AllSelectedAmount = Math.Max(Money.Zero, all - BtcFee);
+ AllSelectedAmount = Math.Max(Money.Zero, all - EstimatedBtcFee);
}
private void SetFeeTargetLimits()
@@ -855,10 +855,10 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _usdFee, value);
}
- public Money BtcFee
+ public Money EstimatedBtcFee
{
- get => _btcFee;
- set => this.RaiseAndSetIfChanged(ref _btcFee, value);
+ get => _estimatedBtcFee;
+ set => this.RaiseAndSetIfChanged(ref _estimatedBtcFee, value);
}
public Money SatoshiPerByteFeeRate

Rename BtcFee to EstimatedBtcFee