mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
fix accounting
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Product>LN Prism</Product>
|
<Product>LN Prism</Product>
|
||||||
<Description>Automated value splits for lightning.</Description>
|
<Description>Automated value splits for lightning.</Description>
|
||||||
<Version>1.0.2</Version>
|
<Version>1.0.3</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<!-- Plugin development properties -->
|
<!-- Plugin development properties -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
|
|||||||
@@ -333,9 +333,9 @@ namespace BTCPayServer.Plugins.Prism
|
|||||||
if (payout.Result == ClaimRequest.ClaimResult.Ok)
|
if (payout.Result == ClaimRequest.ClaimResult.Ok)
|
||||||
{
|
{
|
||||||
prismSettings.PendingPayouts??=new();
|
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,
|
prismSettings.DestinationBalance.AddOrReplace(destination,
|
||||||
amtMsats - (amt - reserveFee) * 1000);
|
amtMsats - (payoutAmount + reserveFee) * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user