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

Function calc_lease_fee

tests/utils.py:99–103  ·  view source on GitHub ↗
(amt, feerate, rates)

Source from the content-addressed store, hash-verified

97
98
99def calc_lease_fee(amt, feerate, rates):
100 fee = rates['lease_fee_base_msat']
101 fee += amt * rates['lease_fee_basis'] // 10
102 fee += rates['funding_weight'] * feerate
103 return fee
104
105
106def _dictify(balances):

Calls

no outgoing calls

Tested by 3

test_v2_rbf_liquidity_adFunction · 0.72