MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fee

Function fee

tests/test_askrene.py:3008–3009  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

3006 return max(len(r["path"]) for r in res["routes"])
3007
3008 def fee(res):
3009 return sum(r["path"][0]["amount_in_msat"] for r in res["routes"]) - AMOUNT
3010
3011 def summary(results):
3012 """(succeeded, failed, longest path, total fee, mean probability_ppm)"""

Callers 1

summaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected