diff --git a/helpers/getUniSubgraph/index.ts b/helpers/getUniSubgraph/index.ts index 2595fe1006..7dfe440324 100644 --- a/helpers/getUniSubgraph/index.ts +++ b/helpers/getUniSubgraph/index.ts @@ -168,7 +168,7 @@ function getGraphDimensions({ const dailyVolumePairsQuery = blacklistTokens[chain] ? gql` query daily_volume_byPair ($timestamp_gt: Int, $timestamp_lte: Int) { - pairDayDatas(where:{${graphFieldsDailyVolume.dateField}_gt: $timestamp_gt, ${graphFieldsDailyVolume.dateField}_lte: $timestamp_lte}){ + pairDayDatas(where:{${graphFieldsDailyVolume.dateField}_gt: $timestamp_gt, ${graphFieldsDailyVolume.dateField}_lte: $timestamp_lte, ${graphFieldsDailyVolume.field}_not: 0}, orderBy: ${graphFieldsDailyVolume.field}, orderDirection: desc, first: 1000){ date token0{ symbol diff --git a/protocols/uniswap/index.ts b/protocols/uniswap/index.ts index 08e68d94ed..55b68b35a9 100644 --- a/protocols/uniswap/index.ts +++ b/protocols/uniswap/index.ts @@ -18,6 +18,14 @@ const v2Endpoints = { [CHAIN.ETHEREUM]: "https://api.thegraph.com/subgraphs/name/ianlapham/uniswap-v2-dev", }; +const blacklisted = { + [CHAIN.ETHEREUM]: [ + '0x637f415687b7b2545ef2cd8dcc1614e1cc175850', + '0xb94acdf8662cd955f137e0c9c9fba535c87b57b4', + '0xb504035a11e672e12a099f32b1672b9c4a78b22f' + ] +} + const v3Endpoints = { [CHAIN.ETHEREUM]: "https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3", [CHAIN.OPTIMISM]: "https://api.thegraph.com/subgraphs/name/ianlapham/optimism-post-regenesis?source=uniswap", @@ -67,7 +75,8 @@ const v2Graph = getGraphDimensions({ HoldersRevenue: 0, Revenue: 0, Fees: 0.3 - } + }, + blacklistTokens: blacklisted }); const v3Graphs = getGraphDimensions({