From 4ac90d7000a123f0a7959cbd9f41234c588a68b6 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Wed, 27 Nov 2024 12:24:43 +0700 Subject: [PATCH] Update nile subgraph --- adapters/kelp_gain_linea/src/lib/nile.ts | 5 ++--- adapters/kelp_gain_linea/src/lib/nuri.ts | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/kelp_gain_linea/src/lib/nile.ts b/adapters/kelp_gain_linea/src/lib/nile.ts index 99e86860..0fb8f10c 100644 --- a/adapters/kelp_gain_linea/src/lib/nile.ts +++ b/adapters/kelp_gain_linea/src/lib/nile.ts @@ -6,11 +6,10 @@ import { getToken0And1 } from "./v3query"; import { NILE_START_BLOCK } from "./utils"; +import { API_KEY } from "./nuri"; const NILE_AGETH_RSETH_POOL = "0x6d1ff6a6ea1b54dacd9609949593e7244aea8a4c"; - -const NILE_SUBGRAPH_BY_DEPLOY_ID = - "https://api.thegraph.com/subgraphs/id/QmPWcLm9K92GkSwD4UtikFqpHbrHgC2tRMUEiaZ8B7p2Xb"; +const NILE_SUBGRAPH_BY_DEPLOY_ID = `https://gateway.thegraph.com/api/${API_KEY}/subgraphs/id/8KNrMAiPqegNtKCP8RdhF8uaPyt8vzKkxuYVzbtHTMQk`; export async function getNileAgEthHodlers(lineaBlockNumber: number) { if (lineaBlockNumber < NILE_START_BLOCK) { diff --git a/adapters/kelp_gain_linea/src/lib/nuri.ts b/adapters/kelp_gain_linea/src/lib/nuri.ts index 4255f147..c315490e 100644 --- a/adapters/kelp_gain_linea/src/lib/nuri.ts +++ b/adapters/kelp_gain_linea/src/lib/nuri.ts @@ -9,7 +9,8 @@ import { NURI_START_TIMESTAMP } from "./utils"; import { getScrollBlock } from "./fetcher"; const NURI_AGETH_RSETH_POOL = "0x107d317617e82f1871906cf6fee702a5daa4d135"; -const API_KEY = process.env.KELPGAIN_SUBGRAPH_API_KEY || ""; +export const API_KEY = process.env.KELPGAIN_SUBGRAPH_API_KEY || ""; + const NURI_SUBGRAPH_BY_GATEWAY = `https://gateway.thegraph.com/api/${API_KEY}/subgraphs/id/Eqr2CueSusTohoTsXCiQgQbaApjuK2ikFvpqkVTPo1y5`; export async function getNuriAgEthHodlers(timestamp: number) {