mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 07:57:33 +01:00
* Payout Destination Handling fixes #2765 This PR: * reactivates the BIP21 support for payouts. * allows LNUrl destinations to be reusable. * allows addresses to be reused in claims as long as the other claims are in a final state * Ensure bolt amount matches the payout amount * fixes * reduce duplicate parsing of bolt * make hash the id of bolt * better bolt11 tostring * use cached payment request from lnurl
19 lines
482 B
C#
19 lines
482 B
C#
namespace BTCPayServer.Data.Payouts.LightningLike
|
|
{
|
|
public class LNURLPayClaimDestinaton: ILightningLikeLikeClaimDestination
|
|
{
|
|
public LNURLPayClaimDestinaton(string lnurl)
|
|
{
|
|
LNURL = lnurl;
|
|
}
|
|
|
|
public string Id => null; //lnurls are reusable
|
|
public decimal? Amount { get; } = null;
|
|
public string LNURL { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return LNURL;
|
|
}
|
|
}
|
|
}
|