mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
24 lines
642 B
C#
24 lines
642 B
C#
using System;
|
|
using NBitcoin;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class AddressClaimDestination : IBitcoinLikeClaimDestination
|
|
{
|
|
public BitcoinAddress _bitcoinAddress;
|
|
|
|
public AddressClaimDestination(BitcoinAddress bitcoinAddress)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(bitcoinAddress);
|
|
_bitcoinAddress = bitcoinAddress;
|
|
}
|
|
public BitcoinAddress Address => _bitcoinAddress;
|
|
public override string ToString()
|
|
{
|
|
return _bitcoinAddress.ToString();
|
|
}
|
|
|
|
public string Id => ToString();
|
|
public decimal? Amount => null;
|
|
}
|
|
}
|