Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Kelp Gain] Update nile subgraph #330

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading