mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 22:25:47 +01:00
lnurlp: do not divide twice (#669)
This commit is contained in:
parent
8e9972ead1
commit
1dec874af7
1 changed files with 1 additions and 5 deletions
|
@ -29,11 +29,7 @@ async def api_lnurl_response(request: Request, link_id):
|
||||||
status_code=HTTPStatus.NOT_FOUND, detail="Pay link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="Pay link does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
rate = (
|
rate = await get_fiat_rate_satoshis(link.currency) if link.currency else 1
|
||||||
await get_fiat_rate_satoshis(link.currency) / link.fiat_base_multiplier
|
|
||||||
if link.currency
|
|
||||||
else 1
|
|
||||||
)
|
|
||||||
|
|
||||||
resp = LnurlPayResponse(
|
resp = LnurlPayResponse(
|
||||||
callback=request.url_for("lnurlp.api_lnurl_callback", link_id=link.id),
|
callback=request.url_for("lnurlp.api_lnurl_callback", link_id=link.id),
|
||||||
|
|
Loading…
Add table
Reference in a new issue