2021-04-13 10:36:49 +02:00
|
|
|
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();
|
|
|
|
}
|
2021-10-18 05:37:59 +02:00
|
|
|
|
|
|
|
public decimal? Amount => null;
|
2021-04-13 10:36:49 +02:00
|
|
|
}
|
|
|
|
}
|