mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 02:54:20 +01:00
request fee from mint
This commit is contained in:
@@ -28,8 +28,10 @@ def async_unwrap(to_await):
|
||||
return async_response[0]
|
||||
|
||||
|
||||
def fee_reserve(amount_msat: int) -> int:
|
||||
def fee_reserve(amount_msat: int, internal=False) -> int:
|
||||
"""Function for calculating the Lightning fee reserve"""
|
||||
if internal:
|
||||
return 0
|
||||
return max(
|
||||
int(LIGHTNING_RESERVE_FEE_MIN), int(amount_msat * LIGHTNING_FEE_PERCENT / 100.0)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user