mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
27 lines
506 B
C#
27 lines
506 B
C#
using NBitcoin;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BTCPayServer.Services.Fees
|
|
{
|
|
public class FixedFeeProvider : IFeeProvider
|
|
{
|
|
public FixedFeeProvider(FeeRate feeRate)
|
|
{
|
|
FeeRate = feeRate;
|
|
}
|
|
|
|
public FeeRate FeeRate
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public Task<FeeRate> GetFeeRateAsync()
|
|
{
|
|
return Task.FromResult(FeeRate);
|
|
}
|
|
}
|
|
}
|