2020-07-29 18:55:28 +09:00
|
|
|
#if ALTCOINS
|
2019-09-30 10:32:43 +02:00
|
|
|
using BTCPayServer.Payments;
|
|
|
|
|
2019-10-02 22:41:53 -05:00
|
|
|
namespace BTCPayServer.Services.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;
|
|
|
|
}
|
2019-10-07 21:06:12 -07:00
|
|
|
|
2020-06-28 17:55:27 +09:00
|
|
|
public decimal GetFeeRate()
|
|
|
|
{
|
2019-10-07 21:06:12 -07:00
|
|
|
return 0.0m;
|
|
|
|
}
|
2021-04-07 06:08:42 +02:00
|
|
|
public bool Activated { get; set; } = true;
|
2019-09-30 10:32:43 +02:00
|
|
|
public long AccountIndex { get; set; }
|
|
|
|
public long AddressIndex { get; set; }
|
|
|
|
public string DepositAddress { get; set; }
|
|
|
|
public decimal NextNetworkFee { get; set; }
|
2024-03-14 17:31:27 +08:00
|
|
|
public long? InvoiceSettledConfirmationThreshold { get; set; }
|
2019-09-30 10:32:43 +02:00
|
|
|
}
|
|
|
|
}
|
2020-07-28 22:48:51 +02:00
|
|
|
#endif
|