mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-19 03:57:29 +02:00
Merge pull request #430 from arcbtc/FastAPI
added lnaddresss for testing
This commit is contained in:
@@ -148,7 +148,7 @@ async def api_lnurlw_callback(
|
|||||||
return {"status": "ERROR", "reason": "no withdraw"}
|
return {"status": "ERROR", "reason": "no withdraw"}
|
||||||
if link.used:
|
if link.used:
|
||||||
return {"status": "ERROR", "reason": "spent"}
|
return {"status": "ERROR", "reason": "spent"}
|
||||||
|
print("winner")
|
||||||
paylink = await get_satsdice_pay(link.satsdice_pay)
|
paylink = await get_satsdice_pay(link.satsdice_pay)
|
||||||
|
|
||||||
await update_satsdice_withdraw(link.id, used=1)
|
await update_satsdice_withdraw(link.id, used=1)
|
||||||
|
@@ -329,7 +329,8 @@
|
|||||||
chanceValueCalc() {
|
chanceValueCalc() {
|
||||||
this.chanceValue = (
|
this.chanceValue = (
|
||||||
(1 / this.multiValue) * 100 -
|
(1 / this.multiValue) * 100 -
|
||||||
this.formDialog.data.haircut
|
this.formDialog.data.haircut -
|
||||||
|
(1 / this.multiValue) * 10
|
||||||
).toFixed(2)
|
).toFixed(2)
|
||||||
return this.chanceValue
|
return this.chanceValue
|
||||||
}
|
}
|
||||||
@@ -446,7 +447,7 @@
|
|||||||
key === 'success_url') &&
|
key === 'success_url') &&
|
||||||
(value === null || value === '')
|
(value === null || value === '')
|
||||||
)
|
)
|
||||||
|
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request(
|
.request(
|
||||||
'PUT',
|
'PUT',
|
||||||
|
Reference in New Issue
Block a user