From 3463af1d81c2712d657bbf30ecba98ffe5873729 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jun 2026 14:12:46 -0700 Subject: Fee-aware gift minimum; move gift entrypoint to Send page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Minimum: the flat 546-sat floor is replaced by a fee-aware minimum (dust + one claim fee of headroom, floored at 546) via giftMinimum(), so the recipient clears dust comfortably even if fees rise before they claim — e.g. ~1000 sats at 5 sat/vB, ~7300 at 50. The create form shows the live minimum and rejects below it; buildClaimTx keeps the hard 294-sat dust guard as a final backstop (claim fails rather than handing over dust). UI: the gift entrypoint moves from Settings to a "Gift some Bitcoin" link on the Send page, opening the gift view as a send sub-view with a back button. New strings translated across all 19 locales. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/i18n.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index 57475dc..abb9015 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -151,7 +151,8 @@ const STR = { giftLinkWarn: '⚠ Anyone who opens this link can claim the amount, so share it only with the person you are gifting. Keep amounts small.', giftLinkReveal: 'Create gift link', giftAmountLabel: 'Amount to gift', - giftAmountInvalid: 'Enter a valid amount.', + giftAmountInvalid: 'Enter at least {n}.', + giftMinNote: 'Minimum {n} at current fees, so it clears dust when claimed.', giftAnother: 'Create another', giftReserved: 'Unclaimed gift links ({n})', giftReclaim: 'Reclaim', -- cgit v1.2.3