mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Show Immature Balance in walletsend page (#2731)
* Wallet Send page also shows immature balance * changes ans to and * Immature Balance msg is not tooltip * Make msg more clear
This commit is contained in:
@@ -489,8 +489,13 @@ namespace BTCPayServer.Controllers
|
||||
.ToArray();
|
||||
var balance = _walletProvider.GetWallet(network).GetBalance(paymentMethod.AccountDerivation);
|
||||
model.NBXSeedAvailable = await GetSeed(walletId, network) != null;
|
||||
model.CurrentBalance = (await balance).Total.GetValue(network);
|
||||
|
||||
var Balance= await balance;
|
||||
model.CurrentBalance = (Balance.Available ?? Balance.Total).GetValue(network);
|
||||
if (Balance.Immature is null)
|
||||
model.ImmatureBalance = 0;
|
||||
else
|
||||
model.ImmatureBalance = Balance.Immature.GetValue(network);
|
||||
|
||||
await Task.WhenAll(recommendedFees);
|
||||
model.RecommendedSatoshiPerByte =
|
||||
recommendedFees.Select(tuple => tuple.Result).Where(option => option != null).ToList();
|
||||
|
||||
Reference in New Issue
Block a user