fix redeem_lnurl_withdraw code.
This commit is contained in:
parent
943237e7ff
commit
a413685160
1 changed files with 2 additions and 2 deletions
|
|
@ -193,7 +193,7 @@ async def redeem_lnurl_withdraw(
|
||||||
|
|
||||||
_, payment_request = await create_invoice(
|
_, payment_request = await create_invoice(
|
||||||
wallet_id=wallet_id,
|
wallet_id=wallet_id,
|
||||||
amount=res["maxWithdrawable"],
|
amount=int(res["maxWithdrawable"] / 1000),
|
||||||
memo=memo or res["defaultDescription"] or "",
|
memo=memo or res["defaultDescription"] or "",
|
||||||
extra=extra,
|
extra=extra,
|
||||||
conn=conn,
|
conn=conn,
|
||||||
|
|
@ -208,7 +208,7 @@ async def redeem_lnurl_withdraw(
|
||||||
"balanceNotify": url_for(
|
"balanceNotify": url_for(
|
||||||
"core.lnurl_balance_notify",
|
"core.lnurl_balance_notify",
|
||||||
service=urlparse(lnurl_request).netloc,
|
service=urlparse(lnurl_request).netloc,
|
||||||
wal=g.wallet.id,
|
wal=wallet_id,
|
||||||
_external=True,
|
_external=True,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue