diff --git a/src/factory/providers/polygon/balancer/index.ts b/src/factory/providers/polygon/balancer/index.ts index 7b159719..ef6bb9d6 100644 --- a/src/factory/providers/polygon/balancer/index.ts +++ b/src/factory/providers/polygon/balancer/index.ts @@ -6,7 +6,7 @@ import { log } from '../../../../util/logger/logger'; const START_BLOCK = 15832998; const THEGRAPTH_ENDPOINT = - 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2-beta'; + 'https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-polygon-v2'; const POOL_COUNT_QUERY = gql` query getPoolCount($block: Int!) { balancer(id: 2, block: { number: $block }) { diff --git a/src/generic.interceptor.ts b/src/generic.interceptor.ts index 42712c98..2f403990 100644 --- a/src/generic.interceptor.ts +++ b/src/generic.interceptor.ts @@ -3,6 +3,7 @@ import { ExecutionContext, Injectable, NestInterceptor, + HttpException, } from '@nestjs/common'; import { Observable, tap } from 'rxjs'; import { log } from './util/logger/logger'; @@ -34,6 +35,7 @@ export class GenericInterceptor implements NestInterceptor { detail: err?.name, endpoint: endpoint.name, }); + throw new HttpException(err.message, 500); }, }), );