aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/samples.ts
Commit message (Collapse)AuthorAgeFilesLines
* send: quote the lightning routing fee up front and add Max to lightning sendsAdam Soltys2026-09-211-0/+14
| | | | | | | | | | | | | | | | | | | 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]>
* update docsAdam Soltys2024-12-041-1/+5
|
* biomeAdam Soltys2024-10-311-1/+1
|
* biome formatAdam Soltys2024-10-181-15/+15
|
* typescriptAdam Soltys2024-08-301-0/+89