From 37d9e3036217304433916e7eb00f5ced50965e66 Mon Sep 17 00:00:00 2001 From: oriolpont Date: Fri, 11 Jun 2021 12:57:46 +0200 Subject: [PATCH] Change minWithdrawable from 1 msat to 1000 msats for the lnurl_full_withdraw 1 msat is fractional and thus unacceptable anyway. Also, when withdrawing from lnbits itself, this interferes with the input form to expect fractional 1.001 steps --- lnbits/core/views/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/core/views/generic.py b/lnbits/core/views/generic.py index ae17839a6..16f648305 100644 --- a/lnbits/core/views/generic.py +++ b/lnbits/core/views/generic.py @@ -129,7 +129,7 @@ async def lnurl_full_withdraw(): _external=True, ), "k1": "0", - "minWithdrawable": 1 if wallet.withdrawable_balance else 0, + "minWithdrawable": 1000 if wallet.withdrawable_balance else 0, "maxWithdrawable": wallet.withdrawable_balance, "defaultDescription": f"{LNBITS_SITE_TITLE} balance withdraw from {wallet.id[0:5]}", "balanceCheck": url_for(