mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-28 21:02:31 +02:00
fixed if
This commit is contained in:
@@ -20,7 +20,7 @@ async def lnurl_response(cp_id):
|
|||||||
callback=url_for(
|
callback=url_for(
|
||||||
"copilot.lnurl_callback", cp_id=cp_id, _external=True
|
"copilot.lnurl_callback", cp_id=cp_id, _external=True
|
||||||
),
|
),
|
||||||
min_sendable=1000,
|
min_sendable=10000,
|
||||||
max_sendable=50000000,
|
max_sendable=50000000,
|
||||||
metadata=LnurlPayMetadata(json.dumps([["text/plain", cp.lnurl_title]]))
|
metadata=LnurlPayMetadata(json.dumps([["text/plain", cp.lnurl_title]]))
|
||||||
)
|
)
|
||||||
@@ -39,7 +39,7 @@ async def lnurl_callback(cp_id):
|
|||||||
|
|
||||||
amount_received = int(request.args.get("amount"))
|
amount_received = int(request.args.get("amount"))
|
||||||
|
|
||||||
if amount_received < 1000:
|
if amount_received < 10000:
|
||||||
return (
|
return (
|
||||||
jsonify(
|
jsonify(
|
||||||
LnurlErrorResponse(
|
LnurlErrorResponse(
|
||||||
@@ -47,7 +47,7 @@ async def lnurl_callback(cp_id):
|
|||||||
).dict()
|
).dict()
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
elif 50000000 > amount_received/1000:
|
elif amount_received/1000 > 50000000:
|
||||||
return (
|
return (
|
||||||
jsonify(
|
jsonify(
|
||||||
LnurlErrorResponse(
|
LnurlErrorResponse(
|
||||||
|
Reference in New Issue
Block a user