fix accounting

This commit is contained in:
Kukks
2023-04-14 14:23:17 +02:00
parent c636a73cb7
commit 86bb8b6110
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
}
}