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/locales/zh.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/locales/zh.json') diff --git a/src/locales/zh.json b/src/locales/zh.json index c3a3d6e..074b4e8 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -155,7 +155,7 @@ "giftLinkDesc": "将一笔金额预签为一个链接。打开链接的人可将这笔 Bitcoin 领取到一个仅由他们自己掌控的全新钱包中。", "giftLinkWarn": "⚠ 任何打开此链接的人都能领取这笔金额,所以请仅分享给你要赠送的对象。请保持金额较小。", "giftAmountLabel": "赠送金额", - "giftAmountInvalid": "请输入有效金额。", + "giftAmountInvalid": "至少输入 {n}。", "giftAnother": "再创建一个", "giftReserved": "未领取的礼物链接({n})", "claimBody": "将它领取到一个仅由你自己掌控的全新钱包中。", @@ -171,5 +171,6 @@ "giftReclaimPrompt": "收回会释放这笔币用于你的下一次付款,但在你花掉它之前链接仍可被领取。改为支付网络手续费立即撤销?", "giftReclaimed": "已收回", "giftRevokeConfirm": "立即撤销此礼物?这会将这笔币退回你的钱包并使链接失效。", - "giftReclaimedTag": "仍可领取" + "giftReclaimedTag": "仍可领取", + "giftMinNote": "按当前手续费至少 {n},以便领取时高于尘埃。" } \ No newline at end of file -- cgit v1.2.3