beethovenxfi / beethovenx-backend

MIT License
13 stars 15 forks source link

SorV2Service.getSwapResult No potential swap paths provided spamming sentry #622

Closed sentry-io[bot] closed 10 months ago

sentry-io[bot] commented 10 months ago

This is spamming sentry:

Basically it's just saying that there isn't a path found from token A to token B. We should either change the b-sdk to not throw here, or catch it on the backend and return a ZERO response.

Sentry Issue: BACKEND-V3-BALANCER-15K

Error: No potential swap paths provided
  File "/var/app/current/dist/modules/sor/sorV2/sorV2.service.js", line 263, in SorV2Service.getSwapResult
    Sentry.captureException(err.message, {
  File "/var/app/current/dist/modules/sor/sor.service.js", line 79, in SorService.getComparingSwap
    const swapV2 = await sorV2_service_1.sorV2Service.getSwapResult(input);
  File "/var/app/current/dist/modules/sor/sor.service.js", line 55, in SorService.getSorSwaps
    const swap = await this.getComparingSwap({
franzns commented 10 months ago

ignored when sending to sentry