From b7925ac5bceb877c5c6654846059ab6dd199de56 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sat, 14 Jan 2023 04:12:10 -0800 Subject: [PATCH] Fix adjust onchain reserve closer to LND's default anchor reserve --- api/logics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/logics.py b/api/logics.py index 08029856..4d62aaff 100644 --- a/api/logics.py +++ b/api/logics.py @@ -548,7 +548,7 @@ class Logics: # Compute a safer available onchain liquidity: (confirmed_utxos - reserve - pending_outgoing_txs)) # Accounts for already committed outgoing TX for previous users. confirmed = onchain_payment.balance.onchain_confirmed - reserve = 0.01 * onchain_payment.balance.total # We assume a reserve of 1% + reserve = 300000 # We assume a reserve of 300K Sats (3 times higher than LND's default anchor reserve) pending_txs = OnchainPayment.objects.filter( status=OnchainPayment.Status.VALID ).aggregate(Sum("num_satoshis"))["num_satoshis__sum"]