From 99d102a9b385d8fdbb74c268a396dfad2d714607 Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Tue, 14 Jan 2025 04:36:45 +0000 Subject: [PATCH] fix bsc graph --- protocols/uniswap/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocols/uniswap/index.ts b/protocols/uniswap/index.ts index ab2508a44d..49ea3ee74c 100644 --- a/protocols/uniswap/index.ts +++ b/protocols/uniswap/index.ts @@ -63,7 +63,7 @@ const v3Endpoints = { [CHAIN.ARBITRUM]: "https://api.thegraph.com/subgraphs/id/QmZ5uwhnwsJXAQGYEF8qKPQ85iVhYAcVZcZAPfrF7ZNb9z", [CHAIN.POLYGON]: sdk.graph.modifyEndpoint('3hCPRGf4z88VC5rsBKU5AA9FBBq5nF3jbKJG7VZCbhjm'), [CHAIN.CELO]: sdk.graph.modifyEndpoint('ESdrTJ3twMwWVoQ1hUE2u7PugEHX3QkenudD6aXCkDQ4'), - [CHAIN.BSC]: sdk.graph.modifyEndpoint('F85MNzUGYqgSHSHRGgeVMNsdnW1KtZSVgFULumXRZTw2'), + // [CHAIN.BSC]: sdk.graph.modifyEndpoint('F85MNzUGYqgSHSHRGgeVMNsdnW1KtZSVgFULumXRZTw2'), // use oku [CHAIN.AVAX]: sdk.graph.modifyEndpoint('9EAxYE17Cc478uzFXRbM7PVnMUSsgb99XZiGxodbtpbk'), [CHAIN.BASE]: sdk.graph.modifyEndpoint('GqzP4Xaehti8KSfQmv3ZctFSjnSUYZ4En5NRsiTbvZpz'), [CHAIN.ERA]: "https://api.thegraph.com/subgraphs/name/freakyfractal/uniswap-v3-zksync-era" @@ -256,6 +256,7 @@ const adapter: BreakdownAdapter = { fetch: async (options: FetchOptions) => { try { const res = (await v3Graphs(chain as Chain)(options)) + // console.log("res", res) return { totalVolume: res?.totalVolume || 0, dailyVolume: res?.dailyVolume || 0, @@ -342,6 +343,7 @@ const okuChains = [ CHAIN.BOB, CHAIN.LISK, CHAIN.CORN, + CHAIN.BSC ] okuChains.forEach(chain => {