From c291fe4ff752796ce74af858c00ccdd0c2f6c156 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Tue, 23 Apr 2024 13:09:10 +0200 Subject: [PATCH] Fix formatting issues --- src/lib/DataProviderManager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/DataProviderManager.ts b/src/lib/DataProviderManager.ts index b2533d7..45b9990 100644 --- a/src/lib/DataProviderManager.ts +++ b/src/lib/DataProviderManager.ts @@ -89,7 +89,7 @@ export class DataProviderManager { Object.entries(feeEstimates).map(([key, value]) => [ key, Math.round((value + Number.EPSILON) * 1000) / 1000, - ]) + ]), ); return { @@ -206,9 +206,9 @@ export class DataProviderManager { keys.forEach((key) => { // Only add the estimate if it has a higher confirmation target and a lower fee. if ( - (Object.keys(mergedEstimates).length === 0) || + Object.keys(mergedEstimates).length === 0 || (key > Math.max(...Object.keys(mergedEstimates).map(Number)) && - estimates[key] < Math.min(...Object.values(mergedEstimates))) + estimates[key] < Math.min(...Object.values(mergedEstimates))) ) { log.debug({ msg: `Adding estimate from ${providerName} with target ${key} and fee ${estimates[key]} to mergedEstimates`,