From 86bb8b611008d185502a7d247c5156dd49f73f2b Mon Sep 17 00:00:00 2001 From: Kukks Date: Fri, 14 Apr 2023 14:23:17 +0200 Subject: [PATCH] fix accounting --- .../BTCPayServer.Plugins.Prism.csproj | 2 +- Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj b/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj index 2caf86e..5ecba03 100644 --- a/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj +++ b/Plugins/BTCPayServer.Plugins.Prism/BTCPayServer.Plugins.Prism.csproj @@ -11,7 +11,7 @@ LN Prism Automated value splits for lightning. - 1.0.2 + 1.0.3 diff --git a/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs b/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs index a3fc50a..d1ee731 100644 --- a/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs +++ b/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs @@ -333,9 +333,9 @@ namespace BTCPayServer.Plugins.Prism if (payout.Result == ClaimRequest.ClaimResult.Ok) { prismSettings.PendingPayouts??=new(); - prismSettings.PendingPayouts.Add(payout.PayoutData.Id, new PendingPayout(amt, reserveFee)); + prismSettings.PendingPayouts.Add(payout.PayoutData.Id, new PendingPayout(payoutAmount, reserveFee)); prismSettings.DestinationBalance.AddOrReplace(destination, - amtMsats - (amt - reserveFee) * 1000); + amtMsats - (payoutAmount + reserveFee) * 1000); } } }