diff options
| author | Adam Soltys <[email protected]> | 2026-08-30 20:04:18 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-30 20:04:18 -0700 |
| commit | 735ee60d386e9fcf5e8e7c62ab53ba0534e43850 (patch) | |
| tree | a83876956a2e27d68c00a502afa32e8c980acc75 /src/features/ark.js | |
| parent | 6383ead744d8f710cddba3953b21e08c52c73e69 (diff) | |
| download | coinosv3-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/features/ark.js')
| -rw-r--r-- | src/features/ark.js | 11 |
1 files changed, 9 insertions, 2 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) ---- |
