2020-07-28 11:30:23 +02:00
|
|
|
#if ALTCOINS
|
|
|
|
using BTCPayServer.Payments;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Services.Altcoins.Ethereum.Payments
|
|
|
|
{
|
|
|
|
public class EthereumLikeOnChainPaymentMethodDetails : IPaymentMethodDetails
|
|
|
|
{
|
|
|
|
public PaymentType GetPaymentType()
|
|
|
|
{
|
|
|
|
return EthereumPaymentType.Instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
public string GetPaymentDestination()
|
|
|
|
{
|
|
|
|
return DepositAddress;
|
|
|
|
}
|
|
|
|
|
|
|
|
public decimal GetNextNetworkFee()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public decimal GetFeeRate()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2020-08-09 16:00:58 +02:00
|
|
|
public void SetPaymentDetails(IPaymentMethodDetails newPaymentMethodDetails)
|
|
|
|
{
|
|
|
|
throw new System.NotImplementedException();
|
|
|
|
}
|
|
|
|
|
2020-07-28 11:30:23 +02:00
|
|
|
public void SetPaymentDestination(string newPaymentDestination)
|
|
|
|
{
|
|
|
|
DepositAddress = newPaymentDestination;
|
|
|
|
}
|
|
|
|
public long Index { get; set; }
|
|
|
|
public string XPub { get; set; }
|
|
|
|
public string DepositAddress { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|