Commit Graph

10 Commits

Author SHA1 Message Date
NW
68d83807ad refactor(arch): Phase 2 — deduplicate isAdmin, convertToUsd, getBaseWalletType
- #54: Extract isAdmin() to src/middleware/auth.js, remove duplicates from 7 admin handlers
- #55: Add WalletUtils.convertToUsd(), replace 8 switch-case blocks across 4 files
- #56: Unify getBaseWalletType() — keep only WalletUtils version (most complete),
  remove duplicates from Wallet.js and userWalletsHandler.js

New file: src/middleware/auth.js
Net: -215 lines, +80 lines

Closes: #54, #55, #56
2026-06-17 22:10:34 +01:00
NW
18647091cf minor edits to aesthetics and functionality 2025-01-08 18:26:50 +00:00
NW
66f5251795 update check ETH USDT USDC balance function 2025-01-08 12:01:02 +00:00
NW
21465022b3 whallets upgrade function 2024-12-16 23:43:44 +00:00
Artyom Ashirov
5d4f56e265 refactoring 2024-11-23 05:03:30 +03:00
Artyom Ashirov
a35bbbf3d9 Recalculate balance 2024-11-19 19:19:05 +03:00
Artyom Ashirov
6fa273f0b6 Item purchase 2024-11-19 05:01:13 +03:00
Artyom Ashirov
373e8e2567 user deletion/blocking 2024-11-15 02:26:13 +03:00
Artyom Ashirov
52779d20ab Nickname added 2024-11-14 18:24:04 +03:00
SoftUniq
abfa7b43af Initial commit 2024-11-13 22:31:18 +00:00