mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-05 15:24:28 +01:00
Warn if amount is over 21m bitcoin
This commit is contained in:
committed by
Paul Miller
parent
dd28f5be04
commit
43647cb403
@@ -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");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user