Commit Graph
412 Commits
Author SHA1 Message Date
MahdiandCursor c09b73763a fix(admin): stop dashboard OOM by aggregating product stats in SQL
Drop unbounded TransactionsAdmin/customer dumps from dashboardMaster
and aggregate GT_products_report without loading all transactions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 21:51:55 +03:30
MahdiandCursor 9a101292ea fix(admin): stop dashboard OOM by aggregating product stats in SQL
Drop unbounded TransactionsAdmin/customer dumps from dashboardMaster
and aggregate GT_products_report without loading all transactions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 21:45:59 +03:30
MahdiandCursor b81a840ffd fix(super): accept SMS shared secret as Bearer for kill-switch
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:53:40 +03:30
MahdiandCursor 5cd81b9663 fix(super): accept SMS shared HMAC for kill-switch auth
Allow SUPERADMIN_SMS_SHARED_SECRET (+ domain) like SMS remote, with
Bearer SUPERADMIN_REMOTE_TOKEN as fallback.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 19:33:30 +03:30
MahdiandCursor e92be66e54 feat: SuperAdmin server-access kill switch gate
Add /super/settings endpoints and API middleware that returns generic 503 while keeping unlock routes whitelisted.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 15:51:17 +03:30
mohmdsdgandCursor fabce6176a Price orders at the provider's real trade rate instead of the mid quote.
montzar_live_price is the midpoint between the colleague's buy and sell rates,
so orders priced straight from it charged the customer less than we pay the
provider and the whole spread was lost on every trade, even though the app
already showed the correct side. Order base price now follows the traded side
(base + spread on buy, base - spread on sell), which also makes price_original
the real cost basis so the dashboard stops counting the provider spread as
profit. Conditional order triggers compare against the same displayed price.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 19:21:56 +03:30
mohmdsdgandCursor 279e4bc881 Enable gated multi-level referral profit and harden chat/SMS notify paths.
Honor enable_customer_level_profit for order referral payouts, and tighten support-chat webhook/SMS plus SuperAdmin SMS panel sync settings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:48:53 +03:30
mohmdsdgandCursor f421fcb83f Add formula-based product pricing (P/W/MG) for Parsian-style unit prices.
Port FormulaPriceService from colleague app so admins can compute a single unit price from reference mid, weight, and wage instead of offset coefficients.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 16:47:29 +03:30
MahdiandCursor 62d83a5bfd Sync SMS panel with SuperAdmin and mirror local wallet/logs.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 22:24:35 +03:30
mohmdsdg f42ae09d14 fix support issue 2026-08-05 12:56:52 +03:30
mohmdsdg bfb8b91133 added trigger for chat sms 2026-08-04 18:59:38 +03:30
mohmdsdg 406ab4387f added rahimi dashboard 2026-08-03 19:42:23 +03:30
mohmdsdg 020219f887 added rahimi 2026-08-03 18:44:27 +03:30
mohmdsdg d360539208 fix title 2026-08-03 11:51:16 +03:30
mohmdsdg ec0fd28efc fix gift 2026-08-02 16:47:19 +03:30
mohmdsdg eaff9dead2 added gholak 2026-08-01 17:30:14 +03:30
mohmdsdg c5361a5706 fix some bugs from chart 2026-08-01 15:53:10 +03:30
mohmdsdg 2d713ce592 Merge remote-tracking branch 'origin/montify' into Abshode_Khanegi 2026-08-01 15:52:17 +03:30
mohmdsdg dcc6ffb3ca added chat 2 2026-07-30 18:06:53 +03:30
mohmdsdg abb778e090 added chat 2026-07-30 15:46:11 +03:30
mohmdsdg 381d28aae5 fix some bugs 2026-07-29 19:57:32 +03:30
mohmdsdg 67c31c9bce fix some bugs 2026-07-29 17:13:19 +03:30
mohmdsdg 16b947adc5 fix some bugs 2026-07-29 17:00:51 +03:30
mohmdsdg dd77e2ce81 fix some bugs from tahesab 2026-07-29 14:58:33 +03:30
mohmdsdg 77e0ba0bb3 fix some bugs from accounting 9 2026-07-28 21:57:29 +03:30
mohmdsdg 736d0a4fd1 fix some bugs from accounting 8 2026-07-28 21:01:42 +03:30
mohmdsdg 09716054ce fix some bugs from accounting 6 2026-07-28 19:08:04 +03:30
mohmdsdg 6bb9af9893 fix some bugs from accounting 5 2026-07-28 18:55:59 +03:30
mohmdsdg 5122d7e2b7 fix some bugs from accounting 4 2026-07-28 18:40:06 +03:30
mohmdsdg d81cea3d4f fix some bugs from accounting 2026-07-28 17:44:24 +03:30
mohmdsdg 91f6b24da4 fix some bugs from zarin 3 2026-07-28 14:57:28 +03:30
mohmdsdg 2c9e969965 fix some bugs from zarin 3 2026-07-28 14:49:55 +03:30
mohmdsdg 3faa071fa5 fix some bugs from zarin 2 2026-07-28 14:28:28 +03:30
mohmdsdg edb664b1db fix some bugs from zarin 2026-07-28 14:15:51 +03:30
mohmdsdg 074b48de95 fix some bugs from zarin 2026-07-28 14:02:23 +03:30
mohmdsdg 745f7fcfd6 fix some bugs from fee 2026-07-28 10:33:11 +03:30
mohmdsdg 7c68115b39 fix some bugs 2026-07-27 22:09:08 +03:30
mohmdsdg 2aed828bac fix some bugs 2026-07-27 21:35:03 +03:30
mohmdsdg d8256b3f20 fix some bugs 2026-07-27 21:01:18 +03:30
mohmdsdg 7d302ecc93 some edits for pargar 2026-07-27 16:05:54 +03:30
mohmdsdg d4fba50845 some edits for pargar 2026-07-27 15:44:21 +03:30
mahmood 933424ddfc Fix some for sign body to montify and not get 401 error| 2026-07-27 01:36:02 +03:30
mahmood 815da9896d fix some for verify 2026-07-27 01:25:10 +03:30
mahmood cdefe88afe Fix 401 error on sign request on verify 2026-07-27 01:17:08 +03:30
mahmood afc23165bd fix some for weebhok url and return url on montify 2026-07-27 01:11:01 +03:30
mahmood 14089fab55 fix dont HMAC request send to montify 2026-07-27 00:41:25 +03:30
mohmdsdg a849150339 fix bug of pargar 4 2026-07-26 21:17:57 +03:30
mohmdsdg 8a0a712598 fix bug of pargar 2 2026-07-26 14:52:22 +03:30
mohmdsdg 06b3113b98 fix bug of pargar 2026-07-26 14:15:26 +03:30
mohmdsdg 667e3736fb fix pargar mande 2026-07-25 16:47:30 +03:30