From 04c42b82f426be2f651b525079507d727db43da0 Mon Sep 17 00:00:00 2001 From: softsimon Date: Wed, 24 Feb 2021 14:39:34 +0700 Subject: [PATCH] Renaming feeApi minimumFee and display as rounded satoshis. --- backend/src/api/fee-api.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/api/fee-api.ts b/backend/src/api/fee-api.ts index 4e20d9c06..bb6e2c318 100644 --- a/backend/src/api/fee-api.ts +++ b/backend/src/api/fee-api.ts @@ -11,13 +11,14 @@ class FeeApi { public getRecommendedFee() { const pBlocks = projectedBlocks.getMempoolBlocks(); const mPool = mempool.getMempoolInfo(); + const minimumFee = Math.ceil(mPool.mempoolminfee * 100000); if (!pBlocks.length) { return { 'fastestFee': this.defaultFee, 'halfHourFee': this.defaultFee, 'hourFee': this.defaultFee, - 'mempoolminfee': mPool.mempoolminfee, + 'minimumFee': minimumFee, }; } @@ -29,7 +30,7 @@ class FeeApi { 'fastestFee': firstMedianFee, 'halfHourFee': secondMedianFee, 'hourFee': thirdMedianFee, - 'mempoolminfee': mPool.mempoolminfee, + 'minimumFee': minimumFee, }; }