diff options
| author | Adam Soltys <[email protected]> | 2025-02-05 23:19:30 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-06 17:07:33 +0000 |
| commit | eae37f75a77236d7929d8ce1f573c0f5bd428c79 (patch) | |
| tree | 86239de92afb2c46ab9861ed7255c2a65203cbed /lib/payments.ts | |
| parent | e76db4629ece6f66e14c07a12bb1ecd495acb178 (diff) | |
| download | coinos-server-eae37f75a77236d7929d8ce1f573c0f5bd428c79.tar.gz coinos-server-eae37f75a77236d7929d8ce1f573c0f5bd428c79.zip | |
rm blocks
Diffstat (limited to 'lib/payments.ts')
| -rw-r--r-- | lib/payments.ts | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index cddb33cb..cdb3610f 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -54,21 +54,13 @@ export const debit = async ({ rate = undefined, }) => { amount = parseInt(amount); - let blacklisted = await db.sIsMember("blacklist", user?.username?.toLowerCase()); - let whitelisted = await db.sIsMember("whitelist", user?.username?.toLowerCase()); + // let whitelisted = await db.sIsMember("whitelist", user?.username?.toLowerCase()); - if (type !== types.internal && blacklisted && !whitelisted && amount > 500) { + if (type !== types.internal && (await g("freeze"))) { warn("Blocking payment", amount, hash, user.username, user.id); fail("Problem sending payment"); } - if (type !== types.internal && (await g("freeze")) && amount > 1000000 && !whitelisted) { - warn("Blocking payment", amount, hash, user.username, user.id); - fail("Problem sending payment"); - } - - // if (!user.unlimited && amount > 1000000) - // fail(`⚡️${amount} exceeds max withdrawal of ⚡️1,000,000`); let ref; const { id: uid, currency } = user; |
