@@ -16,7 +18,7 @@
- @if (await BreezService.Get(storeId) is not null)
+ @if (active)
{
}
@@ -25,21 +27,55 @@
-
+
+ A Bitcoin 12-word mnemonic seed phrase.BACK THIS UP SAFELY! GENERATE IT RANDOMLY! SERVER ADMINS HAVE ACCESS TO THIS!
-
diff --git a/Plugins/BTCPayServer.Plugins.Breez/Views/Breez/SwapIn.cshtml b/Plugins/BTCPayServer.Plugins.Breez/Views/Breez/SwapIn.cshtml
index 793ed68..daef8c5 100644
--- a/Plugins/BTCPayServer.Plugins.Breez/Views/Breez/SwapIn.cshtml
+++ b/Plugins/BTCPayServer.Plugins.Breez/Views/Breez/SwapIn.cshtml
@@ -2,6 +2,7 @@
@using BTCPayServer
@using BTCPayServer.Abstractions.Extensions
@using BTCPayServer.Abstractions.Contracts
+@using BTCPayServer.Client
@using BTCPayServer.Components.QRCode
@using BTCPayServer.Components.TruncateCenter
@using BTCPayServer.Models.StoreViewModels
@@ -9,6 +10,7 @@
@using BTCPayServer.Plugins.Breez
@using BTCPayServer.Security
@using BTCPayServer.Services
+@using Microsoft.AspNetCore.Mvc.TagHelpers
@using NBitcoin
@inject BreezService BreezService
@inject BTCPayNetworkProvider BtcPayNetworkProvider
@@ -20,7 +22,7 @@
string s => s,
StoreDashboardViewModel dashboardModel => dashboardModel.StoreId,
_ => Context.GetImplicitStoreId()
- };
+ };
var sdk = BreezService.GetClient(storeId)?.Sdk;
if (sdk is null)
return;
@@ -34,13 +36,12 @@
catch (Exception e)
{
}
+
var refundables = sdk.ListRefundables();
var deriv = Context.GetStoreData().GetDerivationSchemeSettings(BtcPayNetworkProvider, "BTC");
var ni = sdk.NodeInfo();
var f = sdk.RecommendedFees();
var pmi = new PaymentMethodId("BTC", PaymentTypes.BTCLike);
-
-
}
-
Please send an amount between
@Money.Satoshis(inProgressSwap.minAllowedDeposit).ToDecimal(MoneyUnit.BTC) and @Money.Satoshis(inProgressSwap.maxAllowedDeposit).ToDecimal(MoneyUnit.BTC)BTC
- @if (deriv is not null)
- {
- var wallet = new WalletId(storeId, "BTC");
-
Send using BTCPay Wallet
- }
- @{
- var onChainSats = ni.onchainBalanceMsat / 1000;
- if (inProgressSwap.minAllowedDeposit <= (long) onChainSats)
+
+
Please send an amount between
@Money.Satoshis(inProgressSwap.minAllowedDeposit).ToDecimal(MoneyUnit.BTC) and @Money.Satoshis(inProgressSwap.maxAllowedDeposit).ToDecimal(MoneyUnit.BTC)BTC
+ @if (deriv is not null)
{
-
-
-
+ var wallet = new WalletId(storeId, "BTC");
+
Send using BTCPay Wallet
}
-
- }
+ @{
+ var onChainSats = ni.onchainBalanceMsat / 1000;
+ if (inProgressSwap.minAllowedDeposit <= (long) onChainSats)
+ {
+
+
+
+ }
+ }
+
- @if (inProgressSwap.unconfirmedSats + inProgressSwap.confirmedSats + inProgressSwap.paidSats > 0)
+ @if (inProgressSwap.unconfirmedSats + inProgressSwap.confirmedSats + (inProgressSwap.paidMsat * 1000) > 0)
{
}
@if (inProgressSwap.unconfirmedTxIds.Any())
@@ -144,12 +146,12 @@