Skip to content

Commit

Permalink
Backlist contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Nov 15, 2024
1 parent 3b98340 commit 99a71d1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
3 changes: 2 additions & 1 deletion adapters/kelp_gain_linea/src/lib/camelot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { getArbBlock } from "./fetcher";

const CAMELOT_SUBGRAPH_BY_GATEWAY =
"https://api.thegraph.com/subgraphs/id/QmUjsQpF3mewR2nNyWkpCeKqosaNbRefeqiJJtdEoHQpC7";
const CAMELOT_AGETH_RSETH_POOL = "0x8039cd846fd1f1fe3f560bdbea5f799e499f7873";
export const CAMELOT_AGETH_RSETH_POOL =
"0x8039cd846fd1f1fe3f560bdbea5f799e499f7873";

export async function getCamelotAgEthHodlers(timestamp: number) {
if (timestamp < CAMELOT_START_TIMESTAMP) {
Expand Down
3 changes: 2 additions & 1 deletion adapters/kelp_gain_linea/src/lib/nile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {
} from "./v3query";
import { NILE_START_BLOCK } from "./utils";

const NILE_AGETH_RSETH_POOL = "0x6d1ff6a6ea1b54dacd9609949593e7244aea8a4c";
export const NILE_AGETH_RSETH_POOL =
"0x6d1ff6a6ea1b54dacd9609949593e7244aea8a4c";

const NILE_SUBGRAPH_BY_DEPLOY_ID =
"https://api.thegraph.com/subgraphs/id/QmPWcLm9K92GkSwD4UtikFqpHbrHgC2tRMUEiaZ8B7p2Xb";
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 @@ -8,7 +8,8 @@ import {
import { NURI_START_TIMESTAMP } from "./utils";
import { getScrollBlock } from "./fetcher";

const NURI_AGETH_RSETH_POOL = "0x107d317617e82f1871906cf6fee702a5daa4d135";
export const NURI_AGETH_RSETH_POOL =
"0x107d317617e82f1871906cf6fee702a5daa4d135";
const API_KEY = process.env.KELPGAIN_SUBGRAPH_API_KEY || "";
const NURI_SUBGRAPH_BY_GATEWAY = `https://gateway.thegraph.com/api/${API_KEY}/subgraphs/id/Eqr2CueSusTohoTsXCiQgQbaApjuK2ikFvpqkVTPo1y5`;

Expand Down
14 changes: 9 additions & 5 deletions adapters/kelp_gain_linea/src/lib/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ import {
SPECTRA_YT_ADDRESS
} from "./spectra";
import { agEthToRsEth, rsEthToAgEth } from "./fetcher";
import { getYayAgEthHodlers } from "./yay";
import { getYayAgEthHodlers, YAY_LP_ADDRESS } from "./yay";
import {
GraphQLQuery,
PoolPositionSubgraphEntry,
UserBalanceSubgraphEntry,
UserPositionSubgraphEntry
} from "./models";
import { getCamelotAgEthHodlers } from "./camelot";
import { getNileAgEthHodlers } from "./nile";
import { getNuriAgEthHodlers } from "./nuri";
import { CAMELOT_AGETH_RSETH_POOL, getCamelotAgEthHodlers } from "./camelot";
import { getNileAgEthHodlers, NILE_AGETH_RSETH_POOL } from "./nile";
import { getNuriAgEthHodlers, NURI_AGETH_RSETH_POOL } from "./nuri";

const MULTICALL_BATCH_SIZE = 1000;

Expand All @@ -29,7 +29,11 @@ const Blacklisted = [
balancerVault,
pendleSYAgETH,
SPECTRA_LP_ADDRESS,
SPECTRA_YT_ADDRESS
SPECTRA_YT_ADDRESS,
YAY_LP_ADDRESS,
CAMELOT_AGETH_RSETH_POOL,
NURI_AGETH_RSETH_POOL,
NILE_AGETH_RSETH_POOL
];
export const agETHSubgraph =
"https://api.studio.thegraph.com/query/70817/ageth-lp/version/latest";
Expand Down
2 changes: 1 addition & 1 deletion adapters/kelp_gain_linea/src/lib/yay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { subgraphFetchAllById } from "./query";
import { gql } from "graphql-request";
import { YAY_START_BLOCK } from "./utils";

export const YAY_LP_ADDRESS = "0x0341d2c2CE65B62aF8887E905245B8CfEA2a3b97";
export const YAY_LP_ADDRESS = "0x0341d2c2ce65b62af8887e905245b8cfea2a3b97";

export async function getYayAgEthHodlers(block: number) {
if (block < YAY_START_BLOCK) {
Expand Down

0 comments on commit 99a71d1

Please sign in to comment.