From 9b17f35803250c14e9234a8fa417704b3a9eecda Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 30 Jun 2023 13:12:59 +0200 Subject: [PATCH] fix c&p error --- lib/service/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/service/user.go b/lib/service/user.go index 22541498..a1e9a756 100644 --- a/lib/service/user.go +++ b/lib/service/user.go @@ -142,7 +142,7 @@ func (svc *LndhubService) CalcFeeLimit(destination string, amount int64) int64 { if amount > 1000 { limit = int64(math.Ceil(float64(amount)*float64(0.01)) + 1) } - if amount > svc.Config.MaxFeeAmount { + if limit > svc.Config.MaxFeeAmount { limit = svc.Config.MaxFeeAmount } return limit