mirror of
https://github.com/lnbits/lnbits.git
synced 2025-04-04 09:58:10 +02:00
make format from #967
This commit is contained in:
parent
e357dfe37a
commit
d8a8614fb9
@ -200,7 +200,10 @@ class SparkWallet(Wallet):
|
||||
if r["pays"][0]["payment_hash"] == checking_id:
|
||||
status = r["pays"][0]["status"]
|
||||
if status == "complete":
|
||||
fee_msat = -(int(r["pays"][0]["amount_sent_msat"][0:-4]) - int(r["pays"][0]["amount_msat"][0:-4]))
|
||||
fee_msat = -(
|
||||
int(r["pays"][0]["amount_sent_msat"][0:-4])
|
||||
- int(r["pays"][0]["amount_msat"][0:-4])
|
||||
)
|
||||
return PaymentStatus(True, fee_msat, r["pays"][0]["preimage"])
|
||||
elif status == "failed":
|
||||
return PaymentStatus(False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user