From 0b414cb45ee1045af1143d0b207ba7e44e87665b Mon Sep 17 00:00:00 2001 From: Harsha Goli Date: Tue, 1 Mar 2022 10:55:22 -0500 Subject: [PATCH] main: fix feepercetn from intflags to float Previously, the feepercent flag on autoloop was set to an IntFlag and later converted to Float, leading to the issue where users couldn't specify decimal rates even though we allowed it. --- cmd/loop/liquidity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/loop/liquidity.go b/cmd/loop/liquidity.go index 79e46aa..27ae09c 100644 --- a/cmd/loop/liquidity.go +++ b/cmd/loop/liquidity.go @@ -232,7 +232,7 @@ var setParamsCommand = cli.Command{ Usage: "the limit placed on our estimated sweep fee " + "in sat/vByte.", }, - cli.IntFlag{ + cli.Float64Flag{ Name: "feepercent", Usage: "the maximum percentage of swap amount to be " + "used across all fee categories",