mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-19 05:04:19 +01:00
Min channel size to 100k
This commit is contained in:
committed by
Tony Giorgio
parent
142f50a744
commit
7b16146a70
@@ -410,7 +410,7 @@ export const AmountEditable: ParentComponent<{
|
||||
const network = state.mutiny_wallet?.get_network() as Network;
|
||||
if (network === "bitcoin") {
|
||||
return i18n.t("receive.amount_editable.receive_too_small", {
|
||||
amount: "50,000"
|
||||
amount: "100,000"
|
||||
});
|
||||
} else {
|
||||
return i18n.t("receive.amount_editable.receive_too_small", {
|
||||
|
||||
@@ -531,7 +531,7 @@ export default {
|
||||
"Copy this gift URL to your recipient, or ask them to scan this QR code with their wallet.",
|
||||
send_another: "Create Another",
|
||||
send_small_warning:
|
||||
"A brand new Mutiny user won't be able to redeem fewer than 50k sats.",
|
||||
"A brand new Mutiny user won't be able to redeem fewer than 100k sats.",
|
||||
send_cta: "Create a gift",
|
||||
send_delete_button: "Delete Gift",
|
||||
send_delete_confirm:
|
||||
|
||||
@@ -66,12 +66,12 @@ function InboundWarning() {
|
||||
|
||||
const network = state.mutiny_wallet?.get_network() as Network;
|
||||
|
||||
const threshold = network === "bitcoin" ? 50000 : 10000;
|
||||
const threshold = network === "bitcoin" ? 100000 : 10000;
|
||||
const balance = state.balance?.lightning || 0n;
|
||||
|
||||
if (balance === 0n && amount < threshold) {
|
||||
return i18n.t("settings.gift.receive_too_small", {
|
||||
amount: network === "bitcoin" ? "50,000" : "10,000"
|
||||
amount: network === "bitcoin" ? "100,000" : "10,000"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ export default function Swap() {
|
||||
if (network === "bitcoin") {
|
||||
return (
|
||||
(!!selectedPeer() || !!hasLsp()) &&
|
||||
amountSats() >= 50000n &&
|
||||
amountSats() >= 100000n &&
|
||||
amountSats() <= balance
|
||||
);
|
||||
} else {
|
||||
@@ -220,8 +220,8 @@ export default function Swap() {
|
||||
|
||||
const network = state.mutiny_wallet?.get_network() as Network;
|
||||
|
||||
if (network === "bitcoin" && amountSats() < 50000n) {
|
||||
return i18n.t("swap.channel_too_small", { amount: "50,000" });
|
||||
if (network === "bitcoin" && amountSats() < 100000n) {
|
||||
return i18n.t("swap.channel_too_small", { amount: "100,000" });
|
||||
}
|
||||
|
||||
if (amountSats() < 10000n) {
|
||||
|
||||
@@ -141,7 +141,7 @@ export default function GiftPage() {
|
||||
const [giftForm, { Form, Field }] = createForm<CreateGiftForm>({
|
||||
initialValues: {
|
||||
name: "",
|
||||
amount: "50000"
|
||||
amount: "100000"
|
||||
}
|
||||
});
|
||||
|
||||
@@ -198,8 +198,8 @@ export default function GiftPage() {
|
||||
}
|
||||
});
|
||||
|
||||
const lessThan50k = () => {
|
||||
return Number(getValue(giftForm, "amount")) < 50000;
|
||||
const lessThanMinChannelSize = () => {
|
||||
return Number(getValue(giftForm, "amount")) < 100000;
|
||||
};
|
||||
|
||||
const selfHosted = state.settings?.selfhosted === "true";
|
||||
@@ -309,7 +309,7 @@ export default function GiftPage() {
|
||||
</>
|
||||
)}
|
||||
</Field>
|
||||
<Show when={lessThan50k()}>
|
||||
<Show when={lessThanMinChannelSize()}>
|
||||
<InfoBox accent="green">
|
||||
{i18n.t(
|
||||
"settings.gift.send_small_warning"
|
||||
|
||||
Reference in New Issue
Block a user