Skip to content

chore: remove noisy balance alerts and the dead Telegram integration#198

Merged
Danswar merged 2 commits into
developfrom
chore/remove-balance-alerts
Jun 9, 2026
Merged

chore: remove noisy balance alerts and the dead Telegram integration#198
Danswar merged 2 commits into
developfrom
chore/remove-balance-alerts

Conversation

@Danswar

@Danswar Danswar commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Removes the noisy balance-threshold Telegram alerts (ldsMonitoringBot LOW/HIGH messages) and the now-orphaned Telegram integration behind them.

Commit 1 — remove the balance alerts

  • BalanceAlertService — the @Cron(EVERY_5_MINUTES) posting LOW/HIGH wallet-balance alerts to Telegram.
  • balance-thresholds.config.ts — threshold list, used only by that service.
  • The TelegramModule import in MonitoringModule.

Why: the LOW thresholds (e.g. 1000 USDT on chains holding ~0) effectively never cleared, so the same alerts fired every 5 minutes — noise, not signal.

Commit 2 — remove the dead Telegram integration

With the alerts gone, TelegramService had zero callers and TelegramModule was imported nowhere. Removed:

  • src/integration/telegram/telegram.module.ts
  • src/integration/telegram/services/telegram.service.ts
  • the telegram config block in config.ts

Deploy note: TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID are no longer read — they can be dropped from deploy env/secrets.

Kept intact

BoltzModule stays (still used by MonitoringEvmService); the rest of the monitoring subdomain is untouched. Repo-wide grep for telegram in src/ returns nothing after this change.

6 files changed, 226 deletions.


Infra companion PR: DFXServer/server#361 — removes the now-unused TELEGRAM_BOT_TOKEN / TELEGRAM_CHAT_ID from the LDS .env templates.

Danswar added 2 commits June 9, 2026 11:16
Remove the BalanceAlertService cron and its threshold config, which
posted frequent LOW/HIGH wallet balance alerts to Telegram. The
thresholds rarely cleared, so the alerts were constant noise rather
than actionable signals.

Also drop the now-unused TelegramModule import from MonitoringModule
(BalanceAlertService was its only consumer).
With the balance alerts gone, TelegramService had no remaining callers
and TelegramModule was imported nowhere. Remove the integration module,
the service, and the now-dead telegram config block (TELEGRAM_BOT_TOKEN /
TELEGRAM_CHAT_ID are no longer read).
@Danswar Danswar force-pushed the chore/remove-balance-alerts branch from b30c9a6 to b84bc09 Compare June 9, 2026 14:17

@davidleomay davidleomay left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from a technical perspective — clean removal, no dangling references, imports/modules all check out, and the BoltzModule retention is correct.

That said, @TaprootFreak might want to weigh in on whether this alerting logic is really not needed anymore.

@Danswar Danswar merged commit 0f65ea8 into develop Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants