diff options
| author | Adam Soltys <[email protected]> | 2026-08-27 12:14:25 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-27 12:14:25 -0700 |
| commit | 8008239b74ad7849f100fbd5324883525f5a514b (patch) | |
| tree | 097ed55cc312fa86953eb2830c8a340a058e65e0 /src/features | |
| parent | 7a54fba56b2a1c86c51f16c46b5e00dc97b70ca2 (diff) | |
| download | coinosv3-8008239b74ad7849f100fbd5324883525f5a514b.tar.gz coinosv3-8008239b74ad7849f100fbd5324883525f5a514b.zip | |
Silence is the normal price: the renewal forecast only speaks when a fee is actually coming — free renewals pass without comment
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi
Diffstat (limited to 'src/features')
| -rw-r--r-- | src/features/ark.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/ark.js b/src/features/ark.js index 77a6f5f..6b0a95b 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -2344,9 +2344,10 @@ export function arkFeature(ctx) { amount: fmtAmount(arkRenewWarn.sat) + ' ' + unitLabel(), date: new Date(arkRenewWarn.deadlineMs).toLocaleDateString(), }))); - // The next automatic renewal — date and price — stated before it + // An upcoming renewal that will COST something — stated before it // happens. Ark is new to nearly everyone, and a fee nobody announced - // reads as money gone missing (it did, once). Usually it says "free". + // reads as money gone missing (it did, once). Free renewals — the + // normal case now — pass without comment. if (ark && ark.state && ark._tipH && !wallet.watchOnly) { const spend = (ark.state.vtxos || []).filter((v) => v.state === 'spendable' && v.expiryHeight); if (spend.length) { @@ -2361,10 +2362,10 @@ export function arkFeature(ctx) { let feeSat = 0; try { feeSat = ark.refreshFee(batch, simTip); } catch {} const days = Math.max(1, Math.round(blocksUntil / 144)); - out.push(h('div', { class: 'small faint', style: 'margin:10px 0 0;text-align:center' }, + if (feeSat > 0) out.push(h('div', { class: 'small faint', style: 'margin:10px 0 0;text-align:center' }, t('arkRenewForecast', { when: blocksUntil <= 0 ? t('arkRenewNow') : t('arkRenewInDays', { n: days }), - fee: feeSat > 0 ? fmtAmount(feeSat) + ' ' + unitLabel() : t('feeFree'), + fee: fmtAmount(feeSat) + ' ' + unitLabel(), }))); } } |
