mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
fix accounting
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user