From 84c9a28988725946745b8d42ecf8621070cab1b8 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 21 Feb 2024 22:04:58 +0000 Subject: set limit --- lib/payments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/payments.js b/lib/payments.js index dddb2325..a4063e76 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -37,7 +37,7 @@ export let debit = async ({ rate, }) => { if (await g("freeze")) fail("Problem sending payment"); - if (!user.verified && amount > 1000000) fail(`⚡️${amount} exceeds max withdrawal of ⚡️1,000,000`); + if (!user.unlimited && amount > 1000000) fail(`⚡️${amount} exceeds max withdrawal of ⚡️1,000,000`); let ref; let { id: uid, currency, username } = user; if (!rate) rate = store.rates[currency]; -- cgit v1.2.3