Skip to content

fix(monitoring): remove delisted XT price-deviation checks#3881

Open
Danswar wants to merge 2 commits into
developfrom
fix/remove-delisted-xt-price-deviation
Open

fix(monitoring): remove delisted XT price-deviation checks#3881
Danswar wants to merge 2 commits into
developfrom
fix/remove-delisted-xt-price-deviation

Conversation

@Danswar

@Danswar Danswar commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

XT delisted the DEURO/USDT, DEPS/USDT and JUSD/USDT pairs. ExchangeObserver.getXtPriceDeviation() calls pricingService.getPriceFrom(PriceSource.XT, ...) for each, and XT now throws BadRequestException: XT: pair ... not supported.

Because the DEURO lookup is the first call and nothing catches it, the throw aborts the entire fetch() cron — so Kraken and Binance volume are never emitted that cycle — and it logs an ERROR every 10 minutes (~6/h on dfxdev; the bucket showed up in the error-zero log review).

Fix

With all three XT pairs delisted there is nothing left to monitor on XT, so this removes getXtPriceDeviation() entirely rather than hardening it. Also drops the now-unused PricingService / AssetService injections and imports.

  • fetch() now pushes only Kraken + Binance volume and always emits (the abort is gone).
  • XT integration itself is untouchedPriceSource.XT / XtService stays wired in pricing.service.ts and liquidity-management; only the dead monitoring calls are removed.
  • No code reads the removed deviation entries (XT-dEURO-USDT / XT-DEPS-USDT / XT-JUSD-USDT); health.controller has no exchange/deviation thresholds, so health status is unaffected.
  • tsc --noEmit clean.

Note

Any monitoring dashboard panel showing those three XT deviations will have no further data — but they are already empty since the delisting. No working panel is affected.

XT delisted the DEURO/USDT, DEPS/USDT and JUSD/USDT pairs, so
getPriceFrom(XT, ...) throws 'pair not supported' on every run. As the
first call in getXtPriceDeviation(), it aborted the whole fetch() cron
(Kraken/Binance volume never emitted) and logged ERROR every cycle.

With all three XT pairs gone there is nothing left to monitor on XT, so
remove getXtPriceDeviation() entirely along with the now-unused
PricingService/AssetService injections and imports. Kraken and Binance
volume reporting is unchanged and now always emits.
@TaprootFreak

Copy link
Copy Markdown
Collaborator

LGTM

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.

2 participants