mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-04 01:53:59 +01:00
removed currency
This commit is contained in:
parent
d517fe0330
commit
0bb5d6769e
1 changed files with 0 additions and 2 deletions
|
@ -73,7 +73,6 @@ def xor_decrypt(key, blob):
|
|||
payload[i] = payload[i] ^ secret[i]
|
||||
s = BytesIO(payload)
|
||||
pin = compact.read_from(s)
|
||||
# currency
|
||||
amount_in_cent = compact.read_from(s)
|
||||
return pin, amount_in_cent
|
||||
|
||||
|
@ -105,7 +104,6 @@ async def handle_lnurl_firstrequest(
|
|||
|
||||
data = base64.urlsafe_b64decode(payload)
|
||||
pin, amount_in_cent = xor_decrypt(pos.key.encode(), data)
|
||||
|
||||
price_msat = (
|
||||
await fiat_amount_as_satoshis(float(amount_in_cent) / 100, pos.currency)
|
||||
if pos.currency != "sat"
|
||||
|
|
Loading…
Add table
Reference in a new issue