From 410566cb3696afe15a20ce392cec7ae2b4f716b5 Mon Sep 17 00:00:00 2001 From: rkfg Date: Sat, 17 Dec 2022 22:44:25 +0300 Subject: [PATCH] Fix rapid rebalance total amount calculation --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index dd583c2..7d4f3e1 100644 --- a/main.go +++ b/main.go @@ -373,7 +373,7 @@ func tryRapidRebalance(ctx context.Context, r *regolancer, from, to uint64, hittingTheWall = true } else { result.successfulAttempts++ - result.successfulAmt += amt + result.successfulAmt += amtLocal result.paidFeeMsat += route.TotalFeesMsat } }