diff --git a/src/components/AmountEditable.tsx b/src/components/AmountEditable.tsx index 34bccd2..7cc006b 100644 --- a/src/components/AmountEditable.tsx +++ b/src/components/AmountEditable.tsx @@ -267,8 +267,11 @@ export const AmountEditable: ParentComponent<{ return undefined; } - // If over 4 million sats, warn that it's a beta bro - if (parsed >= 4000000) { + if (parsed >= 2099999997690000) { + // If over 21 million bitcoin, warn that too much + return i18n.t("more_than_21m"); + } else if (parsed >= 4000000) { + // If over 4 million sats, warn that it's a beta bro return i18n.t("too_big_for_beta"); } }; diff --git a/src/i18n/en/translations.ts b/src/i18n/en/translations.ts index e7c8339..8e06eea 100644 --- a/src/i18n/en/translations.ts +++ b/src/i18n/en/translations.ts @@ -52,5 +52,7 @@ export default { continue: "Continue", keep_mutiny_open: "Keep Mutiny open to complete the payment.", too_big_for_beta: - "That's a lot of sats. You do know Mutiny Wallet is still in beta, yeah?" + "That's a lot of sats. You do know Mutiny Wallet is still in beta, yeah?", + more_than_21m: + "There are only 21 million bitcoin.", };