Skip to content

Commit

Permalink
Merge pull request #330 from batphonghan/update_nile_subgraph
Browse files Browse the repository at this point in the history
[Kelp Gain]  Update nile subgraph
  • Loading branch information
0xroll authored Nov 27, 2024
2 parents 5634d46 + 4ac90d7 commit 44a314a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions adapters/kelp_gain_linea/src/lib/nile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion adapters/kelp_gain_linea/src/lib/nuri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 44a314a

Please sign in to comment.