mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-28 08:54:13 +01:00
Add Tests Add Index, XPub to payment data Add Note on local ETH node Fix Sync Summary and Race Condition
37 lines
863 B
C#
37 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
|