mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-29 05:12:39 +02:00
removed currency
This commit is contained in:
@@ -73,7 +73,6 @@ def xor_decrypt(key, blob):
|
|||||||
payload[i] = payload[i] ^ secret[i]
|
payload[i] = payload[i] ^ secret[i]
|
||||||
s = BytesIO(payload)
|
s = BytesIO(payload)
|
||||||
pin = compact.read_from(s)
|
pin = compact.read_from(s)
|
||||||
# currency
|
|
||||||
amount_in_cent = compact.read_from(s)
|
amount_in_cent = compact.read_from(s)
|
||||||
return pin, amount_in_cent
|
return pin, amount_in_cent
|
||||||
|
|
||||||
@@ -105,7 +104,6 @@ async def handle_lnurl_firstrequest(
|
|||||||
|
|
||||||
data = base64.urlsafe_b64decode(payload)
|
data = base64.urlsafe_b64decode(payload)
|
||||||
pin, amount_in_cent = xor_decrypt(pos.key.encode(), data)
|
pin, amount_in_cent = xor_decrypt(pos.key.encode(), data)
|
||||||
|
|
||||||
price_msat = (
|
price_msat = (
|
||||||
await fiat_amount_as_satoshis(float(amount_in_cent) / 100, pos.currency)
|
await fiat_amount_as_satoshis(float(amount_in_cent) / 100, pos.currency)
|
||||||
if pos.currency != "sat"
|
if pos.currency != "sat"
|
||||||
|
Reference in New Issue
Block a user