aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/ln
Commit message (Collapse)AuthorAgeFilesLines
* send: stop the Max buttons from cancelling their own submit, show LNURL ↵Adam Soltys2026-09-211-3/+5
| | | | | | | | | | | | | | | | | | | | | | | action errors Choosing Max on the LNURL-pay page left the button spinning forever. Two things combined: The Max buttons set `loading` from their click handler. Svelte flushes `disabled={loading}` to the DOM before the browser runs the button's submit activation, and a disabled button submits nothing. Set loading from the form's onsubmit instead, the way the Send button always did. The /ln page never passed `form` into the Lnurlp and Lnurlw components, so any action failure (pay, max or withdraw) rendered nothing and never reset the spinner. Pass it through, and reset loading when a result arrives. Verified in headless Chrome against the dev stack: the bolt11 Max lands on the fee view, and the LNURL Max surfaces the server's error and re-enables the buttons. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* send: quote the lightning routing fee up front and add Max to lightning sendsAdam Soltys2026-09-211-1/+54
| | | | | | | | | | | | | | | | | | | The lightning send page now asks the server what the payment will cost before showing the Send button: the exact routing fee from the route query, the platform fee, and the total. The quoted fee is submitted as the maxfee, so what the user sees is what gets debited; advanced settings still let them override it, and if the quote fails the page falls back to the old 2% reserve. Max on the amount step asks the server for the largest amount whose amount + routing fee + platform fee lands exactly on the balance, and for an offer picks up the invoice fetched for that exact amount. LNURL-pay gets a Max button too. The invoice only exists once we name an amount, so the action fetches a probe invoice at the ceiling, lets the server solve for the amount, then fetches the real invoice for it. Co-Authored-By: Claude Fable 5.1 <[email protected]>
* use searchparams for lnurlAdam Soltys2026-03-271-2/+4
|
* lnurl proxyAdam Soltys2026-03-271-3/+6
|
* Fix subdomain matching in LNURL callback redirectAdam Soltys2026-02-251-2/+2
| | | | Co-Authored-By: Claude Opus 4.6 <[email protected]>
* fix redirectAdam Soltys2025-08-181-2/+4
|
* make lnurl route publicAdam Soltys2025-08-101-2/+1
|
* handle callbacks with paramsAdam Soltys2025-08-061-2/+6
|
* handle no invoiceAdam Soltys2025-08-061-7/+4
|
* loggingAdam Soltys2025-08-061-0/+5
|
* handle null tipsAdam Soltys2025-07-191-12/+4
|
* handle tipping for lnurls, sweep fixesAdam Soltys2025-07-191-12/+16
|
* user lnurlAdam Soltys2025-06-231-16/+35
|
* handle lnurlp with fixed amountAdam Soltys2025-05-071-0/+14
|
* encode commentsAdam Soltys2025-01-251-1/+1
|
* capture ln commentsAdam Soltys2025-01-251-1/+3
|
* nostr sign inAdam Soltys2025-01-031-2/+0
|
* create fundAdam Soltys2024-12-241-2/+7
|
* fix lnurl rateAdam Soltys2024-12-071-6/+6
|
* cached ratesAdam Soltys2024-12-051-2/+5
|
* svelte 5Adam Soltys2024-11-082-3/+3
|
* dark stylesAdam Soltys2024-11-051-1/+1
|
* biomeAdam Soltys2024-10-311-53/+57
|
* biome formatAdam Soltys2024-10-181-3/+2
|
* hide maxfee unless errorAdam Soltys2024-10-141-3/+5
|
* support lnurl commentsAdam Soltys2024-10-141-4/+5
|
* move routesAdam Soltys2024-09-172-2/+2
|
* typescriptAdam Soltys2024-08-311-2/+2
|
* typescriptAdam Soltys2024-08-301-0/+0
|
* redirect to paymentsAdam Soltys2024-08-221-1/+1
|
* sveltekit 2Adam Soltys2023-12-151-5/+5
|
* prettierAdam Soltys2023-12-041-1/+2
|
* change component importsAdam Soltys2023-12-012-2/+2
|
* prettierAdam Soltys2023-12-013-62/+79
|
* fee sliderfee-sliderAdam Soltys2023-02-231-2/+3
|
* fee slider wipAdam Soltys2023-02-231-6/+3
|
* prettierAdam Soltys2023-01-312-5/+4
|
* rm logsAdam Soltys2023-01-281-4/+1
|
* logAdam Soltys2023-01-281-1/+4
|
* check for userAdam Soltys2023-01-281-1/+4
|
* missing form fieldsAdam Soltys2023-01-281-2/+2
|
* deal in millisatsAdam Soltys2023-01-272-6/+16
|
* missing varAdam Soltys2023-01-271-0/+1
|
* lnurlwAdam Soltys2023-01-273-57/+55
|
* sveltekit 1.0Adam Soltys2023-01-251-2/+2
|
* lnurl payAdam Soltys2023-01-242-12/+30
|
* payments migrationAdam Soltys2023-01-131-1/+1
|
* pin code fixesAdam Soltys2023-01-051-2/+1
|
* prettierAdam Soltys2022-12-141-0/+1
|
* clean up request flow, update translations and depsAdam Soltys2022-11-221-1/+1
|