Min channel size to 100k

This commit is contained in:
Tony Giorgio
2023-11-09 12:57:27 -06:00
committed by Tony Giorgio
parent 142f50a744
commit 7b16146a70
5 changed files with 11 additions and 11 deletions

View File

@@ -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", {

View File

@@ -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:

View File

@@ -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"
});
}

View File

@@ -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) {

View File

@@ -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"