Skip to content

Commit

Permalink
add fee percent that was taken in a successful rebalance
Browse files Browse the repository at this point in the history
I think it is nice to know what was the fee percentage that was used in the re-balance,
e.g.
Instead of this:
fee": "59846msat",

It will output:
fee_percentage": "0.114%",
  • Loading branch information
Christian Decker authored and chrisguida committed Sep 28, 2024
1 parent a2b4526 commit 4a52e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rebalance/rebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ def rebalance(
"sent": msatoshi + fees,
"received": msatoshi,
"fee": fees,
"fee_percentage": f"{fees/msatoshi*100:.3}%",
"hops": len(route),
"outgoing_scid": outgoing_scid,
"incoming_scid": incoming_scid,
Expand Down

0 comments on commit 4a52e26

Please sign in to comment.