mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-26 15:41:29 +01:00
* Refactor and decouple Payout logic So that we can support lightning and more complex flows like allowing external payments to payouts. * fix dropdown align * switch to simpler buttons * rebase fixes add some comments * rebase fixes add some comments * simplify enum caveman logic * reduce code duplication and db round trips * Fix pull payment date format * fix issue with payouts to send page not working correctly * try fix some style issue * fix bip21parse
22 lines
612 B
C#
22 lines
612 B
C#
using System;
|
|
using NBitcoin;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class AddressClaimDestination : IBitcoinLikeClaimDestination
|
|
{
|
|
public BitcoinAddress _bitcoinAddress;
|
|
|
|
public AddressClaimDestination(BitcoinAddress bitcoinAddress)
|
|
{
|
|
if (bitcoinAddress == null)
|
|
throw new ArgumentNullException(nameof(bitcoinAddress));
|
|
_bitcoinAddress = bitcoinAddress;
|
|
}
|
|
public BitcoinAddress Address => _bitcoinAddress;
|
|
public override string ToString()
|
|
{
|
|
return _bitcoinAddress.ToString();
|
|
}
|
|
}
|
|
}
|