From c9c499caac946f2774104346b9d5b3a409373380 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Mon, 5 Feb 2024 11:23:24 -0500 Subject: [PATCH] return nothing if not L1 networks --- src/services/DappsStakingEvents.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/DappsStakingEvents.ts b/src/services/DappsStakingEvents.ts index 3ff5a5d..a225024 100644 --- a/src/services/DappsStakingEvents.ts +++ b/src/services/DappsStakingEvents.ts @@ -405,6 +405,8 @@ export class DappsStakingEvents extends ServiceBase implements IDappsStakingEven private getApiUrl(network: NetworkType): string { // For local development: `http://localhost:4350/graphql`; - return `https://squid.subsquid.io/dapps-staking-indexer-${network}/graphql`; + return ['astar', 'shiden', 'shibuya'].includes(network) + ? `https://squid.subsquid.io/dapps-staking-indexer-${network}/graphql` + : ''; } }