mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-27 16:44:53 +01:00
* (bug) treat xmr wallet directory as required The wallet directory configuration setting is required because the `UIMoneroLikeStoreController`'s `GetMoneroLikePaymentMethodViewModel` method checks if the wallet file exists, and to do that in needs the directory. * (feat) xmr settlement thresholds Adds the ability to select zero, 1, 10, or a custom number of confirmations as the payment settlement threshold. * (review) fix validation message not showing --------- Co-authored-by: Henry Hollingworth <henry.hollingworth@alcoa.com>
35 lines
916 B
C#
35 lines
916 B
C#
#if ALTCOINS
|
|
using BTCPayServer.Payments;
|
|
|
|
namespace BTCPayServer.Services.Altcoins.Monero.Payments
|
|
{
|
|
public class MoneroLikeOnChainPaymentMethodDetails : IPaymentMethodDetails
|
|
{
|
|
public PaymentType GetPaymentType()
|
|
{
|
|
return MoneroPaymentType.Instance;
|
|
}
|
|
|
|
public string GetPaymentDestination()
|
|
{
|
|
return DepositAddress;
|
|
}
|
|
|
|
public decimal GetNextNetworkFee()
|
|
{
|
|
return NextNetworkFee;
|
|
}
|
|
|
|
public decimal GetFeeRate()
|
|
{
|
|
return 0.0m;
|
|
}
|
|
public bool Activated { get; set; } = true;
|
|
public long AccountIndex { get; set; }
|
|
public long AddressIndex { get; set; }
|
|
public string DepositAddress { get; set; }
|
|
public decimal NextNetworkFee { get; set; }
|
|
public long? InvoiceSettledConfirmationThreshold { get; set; }
|
|
}
|
|
}
|
|
#endif
|