aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/ark.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-18 00:02:52 -0700
committerAdam Soltys <[email protected]>2026-08-18 00:02:52 -0700
commit3a0e45efce65c368dcb38e8f92a250379fc0e39a (patch)
tree7b60265034b35f2e013a75e7ce334ca7ab13e611 /src/features/ark.js
parent828d3b7fb6644a56938820693e8253148113fb77 (diff)
downloadcoinosv3-3a0e45efce65c368dcb38e8f92a250379fc0e39a.tar.gz
coinosv3-3a0e45efce65c368dcb38e8f92a250379fc0e39a.zip
Money finds its way to Spending: the setup wizard ends with a top-up step when Savings can fund one, and a low Spending face wears a one-tap Top up from Savings button
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JtaatFfAbx91Nh3xqKVqKz
Diffstat (limited to 'src/features/ark.js')
-rw-r--r--src/features/ark.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index 223fe3e..cdac6c4 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -2133,6 +2133,12 @@ export function arkFeature(ctx) {
canLnPay() { return arkAvailable() && !wallet.watchOnly && !!(ark && ark.info); },
lnSpendableSat() { const b = arkBalance(); return b ? b.spendableSat : 0; },
settingsCards() { return [autoWithdrawCard()]; },
+ // The onboarding wizard's top-up step borrows the board form wholesale.
+ arkBoardForm() {
+ if (!arkAvailable() || wallet.watchOnly) return null;
+ if (!ark) { connectArk().catch(() => {}); return null; }
+ return boardForm();
+ },
// A payment wants more Spending than exists: open the board panel with a
// prefill that nets out to the need (gross of the board fee, with a bit
// of routing headroom) — editable, so boarding extra is one keystroke.