aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-30 20:04:18 -0700
committerAdam Soltys <[email protected]>2026-08-30 20:04:18 -0700
commit735ee60d386e9fcf5e8e7c62ab53ba0534e43850 (patch)
treea83876956a2e27d68c00a502afa32e8c980acc75 /src
parent6383ead744d8f710cddba3953b21e08c52c73e69 (diff)
downloadcoinosv3-735ee60d386e9fcf5e8e7c62ab53ba0534e43850.tar.gz
coinosv3-735ee60d386e9fcf5e8e7c62ab53ba0534e43850.zip
The boarded screen tells the truth about the wait: 'Ready to spend after N confirmations' comes from the ASP's requiredBoardConfirmations instead of a hardcoded 1 that contradicted the 0/3 counter under the balance
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
Diffstat (limited to 'src')
-rw-r--r--src/features/ark.js11
-rw-r--r--src/i18n.js3
2 files changed, 11 insertions, 3 deletions
diff --git a/src/features/ark.js b/src/features/ark.js
index 8d71ada..dc4c0f1 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -2340,6 +2340,13 @@ export function arkFeature(ctx) {
}
}
+ // The ASP decides how many confirmations a board needs — say that number,
+ // not a hardcoded one that contradicts the n/need counter under the balance.
+ const boardedNote = () => {
+ const n = (ark && ark.info && ark.info.requiredBoardConfirmations) || 1;
+ return n === 1 ? t('arkBoardedNoteOne') : t('arkBoardedNote', { n });
+ };
+
function boardForm() {
const minBoard = (ark && ark.info && ark.info.minBoardAmountSat) || 0;
const canBoard = wallet.spendable >= minBoard;
@@ -2471,7 +2478,7 @@ export function arkFeature(ctx) {
h('div', { class: 'check-badge' }, '✓'),
h('h2', { style: 'margin:0' }, t('arkBoardedTitle')),
h('div', { class: 'amount-pos', style: 'font-size:18px' }, '+' + fmtAmount(b.netSat) + ' ' + unitLabel()),
- h('p', { class: 'small muted', style: 'margin:0' }, t('arkBoardedNote')),
+ h('p', { class: 'small muted', style: 'margin:0' }, boardedNote()),
h('div', { class: 'addr-box', style: 'width:100%' }, b.txid),
h('div', { class: 'row gap6' },
copyBtn(b.txid, t('copyTxid')),
@@ -2953,7 +2960,7 @@ export function arkFeature(ctx) {
h('span', { class: 'k' }, t('arkBoardFeeLabel')),
h('span', { class: 'v' }, fmtAmount(a.feeSat) + ' ' + unitLabel()))
: null,
- done ? null : h('div', { class: 'small muted', style: 'margin-top:2px' }, t('arkBoardedNote')));
+ done ? null : h('div', { class: 'small muted', style: 'margin-top:2px' }, boardedNote()));
},
// ---- ark-gift hooks (called by the gifts feature via ctx.hook) ----
diff --git a/src/i18n.js b/src/i18n.js
index 375edaf..20777f2 100644
--- a/src/i18n.js
+++ b/src/i18n.js
@@ -534,7 +534,8 @@ const STR = {
arkBoardFeeNote: 'Fee {fee} sats — {net} sats will arrive in Spending.',
arkBoardFeeLabel: 'Fee',
arkBoardedTitle: 'On its way!',
- arkBoardedNote: 'Ready to spend after 1 confirmation.',
+ arkBoardedNote: 'Ready to spend after {n} confirmations.',
+ arkBoardedNoteOne: 'Ready to spend after 1 confirmation.',
arkBoardIntro: 'Move money from Savings into Spending:',
arkBoardAvailable: '{n} in Savings',
arkBoardNoFunds: 'Needs at least {n} sats in Savings.',