upd prism

This commit is contained in:
Kukks
2023-08-15 19:35:00 +02:00
parent c62d24d1fd
commit 46d1bbade4
2 changed files with 7 additions and 2 deletions

View File

@@ -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.1.16</Version> <Version>1.1.17</Version>
</PropertyGroup> </PropertyGroup>
<!-- Plugin development properties --> <!-- Plugin development properties -->
<PropertyGroup> <PropertyGroup>

View File

@@ -447,6 +447,11 @@ namespace BTCPayServer.Plugins.Prism
? new PaymentMethodId("BTC", LightningPaymentType.Instance) ? new PaymentMethodId("BTC", LightningPaymentType.Instance)
: pmi2; : pmi2;
var source = "Prism";
if (destinationSettings is not null)
{
source+= $" ({destination})";
}
var claimRequest = new ClaimRequest() var claimRequest = new ClaimRequest()
{ {
Destination = new LNURLPayClaimDestinaton(destinationSettings?.Destination ?? destination), Destination = new LNURLPayClaimDestinaton(destinationSettings?.Destination ?? destination),
@@ -456,7 +461,7 @@ namespace BTCPayServer.Plugins.Prism
Value = Money.Satoshis(payoutAmount).ToDecimal(MoneyUnit.BTC), Value = Money.Satoshis(payoutAmount).ToDecimal(MoneyUnit.BTC),
Metadata = JObject.FromObject(new Metadata = JObject.FromObject(new
{ {
Source = $"Prism ({(destinationSettings?.Destination ?? destination)})" Source = source
}) })
}; };
claimRequest = claimRequest =