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/ja.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/locales/ja.json') diff --git a/src/locales/ja.json b/src/locales/ja.json index b0ab956..35b91a8 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.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