mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 00:52:52 +01:00
38 lines
863 B
C#
38 lines
863 B
C#
|
#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;
|
||
|
}
|
||
|
|
||
|
public void SetPaymentDestination(string newPaymentDestination)
|
||
|
{
|
||
|
DepositAddress = newPaymentDestination;
|
||
|
}
|
||
|
public long Index { get; set; }
|
||
|
public string XPub { get; set; }
|
||
|
public string DepositAddress { get; set; }
|
||
|
}
|
||
|
}
|
||
|
#endif
|