diff options
| author | Adam Soltys <[email protected]> | 2026-03-04 12:43:11 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-04 12:43:11 -0800 |
| commit | a6bc64017162bcaf1b7c2f3525f89c0e8dbe8d68 (patch) | |
| tree | 13e8bc40b4dca5426565a851c7fa372271aa5f88 /lib | |
| parent | 6781fd2935ebc3abdeed182b4cee62c25c5482e7 (diff) | |
| download | coinos-server-a6bc64017162bcaf1b7c2f3525f89c0e8dbe8d68.tar.gz coinos-server-a6bc64017162bcaf1b7c2f3525f89c0e8dbe8d68.zip | |
fund authorizations
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/payments.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts index bdaf2b1d..d0c43235 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -159,7 +159,7 @@ export const debit = async ({ const userLimit = await g("limit"); const frozen = (await g("hardfreeze")) || ((await g("freeze")) && type !== PaymentType.internal); - if (frozen || (amount > userLimit && !whitelisted) || amount > serverLimit) { + if (frozen || (userLimit != null && amount > userLimit && !whitelisted) || (serverLimit != null && amount > serverLimit)) { warn("Blocking", user.username, amount, hash, user.id, type, frozen, userLimit, serverLimit); fail("Problem sending payment"); } |
