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/ar.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/locales/ar.json') diff --git a/src/locales/ar.json b/src/locales/ar.json index 923e8d2..76843bc 100644 --- a/src/locales/ar.json +++ b/src/locales/ar.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