Skip to content

Commit

Permalink
Merge pull request #18 from LN-Zap/min-fee
Browse files Browse the repository at this point in the history
Support estimates down to minimumFee
  • Loading branch information
mrfelton authored Jan 6, 2024
2 parents 5894420 + 4aabb5e commit 04d7ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ type MempoolFeeEstimates = {
halfHourFee: number;
hourFee: number;
economyFee: number;
minimumFee: number;
};

type EsploraFeeEstimates = {
Expand Down
2 changes: 1 addition & 1 deletion src/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function assignResults(results: PromiseSettledResult<any>[]) {
*/
function calculateFees(mempoolFeeEstimates: MempoolFeeEstimates | null | undefined, esploraFeeEstimates: EsploraFeeEstimates | null | undefined) {
let feeByBlockTarget: FeeByBlockTarget = {};
const minFee = mempoolFeeEstimates?.economyFee;
const minFee = mempoolFeeEstimates?.minimumFee;

if (mempoolFeeEstimates) {
const blockTargetMapping: BlockTargetMapping = {
Expand Down

0 comments on commit 04d7ae4

Please sign in to comment.