From ab7ec75df5c46fc1100844cc88891f46c37e234a Mon Sep 17 00:00:00 2001 From: Nitesh Balusu Date: Tue, 14 Feb 2023 19:39:55 +0530 Subject: [PATCH] fix fee rate condition for auto fees Signed-off-by: Nitesh Balusu --- src/server/commands/fees/update_policies.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/commands/fees/update_policies.ts b/src/server/commands/fees/update_policies.ts index 837e5ba..a303048 100644 --- a/src/server/commands/fees/update_policies.ts +++ b/src/server/commands/fees/update_policies.ts @@ -13,7 +13,7 @@ const defaultRate = 1; const div = (a: number, b: number) => (a / b).toFixed(2); const flatten = arr => [].concat(...arr); const interval = 1000 * 60 * 2; -const isBetween = (num1: number, num2: number, value: number) => value > num1 && value <= num2; +const isBetween = (num1: number, num2: number, value: number) => (value > num1 || num1 === 0) && value <= num2; const maxhtlc = (a: number, b: number) => String(round(a * b * 1000)); const times = 10; const uniq = (arr: string[]) => Array.from(new Set(arr));