2019-09-30 10:32:43 +02:00
|
|
|
using BTCPayServer.Payments;
|
|
|
|
|
2019-09-30 20:42:31 +09:00
|
|
|
namespace BTCPayServer.Altcoins.Monero.Payments
|
2019-09-30 10:32:43 +02:00
|
|
|
{
|
|
|
|
public class MoneroLikeOnChainPaymentMethodDetails : IPaymentMethodDetails
|
|
|
|
{
|
|
|
|
public PaymentType GetPaymentType()
|
|
|
|
{
|
|
|
|
return MoneroPaymentType.Instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public string GetPaymentDestination()
|
|
|
|
{
|
|
|
|
return DepositAddress;
|
|
|
|
}
|
|
|
|
|
|
|
|
public decimal GetNextNetworkFee()
|
|
|
|
{
|
|
|
|
return NextNetworkFee;
|
|
|
|
}
|
|
|
|
public void SetPaymentDestination(string newPaymentDestination)
|
|
|
|
{
|
|
|
|
DepositAddress = newPaymentDestination;
|
|
|
|
}
|
|
|
|
public long AccountIndex { get; set; }
|
|
|
|
public long AddressIndex { get; set; }
|
|
|
|
public string DepositAddress { get; set; }
|
|
|
|
public decimal NextNetworkFee { get; set; }
|
|
|
|
}
|
|
|
|
}
|