btcpayserver/BTCPayServer/Services/Fees
Andrew Camilleri 3eec9cb0bb
Refactor fee provider (#5643)
* Refactor fee provider

The fee provider ended up glued with a hardcoded factory. This PR:
* removes this glue and uses the DI to register fee provider for a network. (allows plugins to add their own fee providers, for any network
* Add a 10 second timeout to mempoolspace fee fetching as they are slow at times

* use linear interpolation for mempool space fee estimation

* fix upper bound

* Add tests, rollback pluginify FeeProvider

---------

Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
2024-01-18 15:27:19 +09:00
..
FallbackFeeProvider.cs Select 1 hour as default fee rate 2023-12-19 12:23:20 +09:00
FeeProviderFactory.cs Use Mempoolspace fees (#5490) 2023-11-28 18:26:35 +09:00
FixedFeeProvider.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
IFeeProvider.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
IFeeProviderFactory.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
MempoolSpaceFeeProvider.cs Refactor fee provider (#5643) 2024-01-18 15:27:19 +09:00
NBxplorerFeeProvider.cs Use Mempoolspace fees (#5490) 2023-11-28 18:26:35 +09:00
StaticFeeProvider.cs Use Mempoolspace fees (#5490) 2023-11-28 18:26:35 +09:00