Skip to content

Commit

Permalink
Support estimates down to minimumFee
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jan 6, 2024
1 parent f1a1f51 commit 4aabb5e
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 4aabb5e

Please sign in to comment.