@using Breez.Sdk @using BTCPayServer @using BTCPayServer.Models.StoreViewModels @using BTCPayServer.Plugins.Breez @using BTCPayServer.Security @using BTCPayServer.Services.Invoices @using Microsoft.AspNetCore.Mvc.TagHelpers @inject BreezService BreezService @inject PaymentMethodHandlerDictionary PaymentMethodHandlerDictionary @{ Layout = "_Layout"; ViewData.SetActivePage("Breez", "Swap Out", "SwapOut"); string storeId = null; if (Model is string s) { storeId = s; } else if (Model is StoreDashboardViewModel dashboardModel) { storeId = dashboardModel.StoreId; } else { storeId = Context.GetImplicitStoreId(); } var sdk = BreezService.GetClient(storeId)?.Sdk; if (sdk is null) return; var inProgressSwaps = sdk.InProgressReverseSwaps(); var deriv = Context.GetStoreData().GetDerivationSchemeSettings(PaymentMethodHandlerDictionary, "BTC"); var f = sdk.RecommendedFees(); var swapOutRec = sdk.FetchReverseSwapFees(new ReverseSwapFeesRequest()); } @if (deriv is not null) { }

@ViewData["Title"]

Minimum: @swapOutRec.min, Maximum: @swapOutRec.max

@if (inProgressSwaps?.Any() is true) { @foreach (var swap in inProgressSwaps) { }
Id Status
@swap.id @swap.status
}