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
This commit is contained in:
oriolpont 2021-06-11 12:57:46 +02:00 committed by fiatjaf
parent 8500b7767c
commit 37d9e30362

View File

@ -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(