From b1c136b4a0fd572dedf7cdf1f9e9563ae9257b4e Mon Sep 17 00:00:00 2001 From: 0xgnek <0xgnek@gmail.com> Date: Wed, 26 Jul 2023 13:00:54 +0000 Subject: [PATCH] pancakeswap era --- protocols/pancakeswap/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/protocols/pancakeswap/index.ts b/protocols/pancakeswap/index.ts index b463fedb30..a757d9a812 100644 --- a/protocols/pancakeswap/index.ts +++ b/protocols/pancakeswap/index.ts @@ -8,7 +8,8 @@ import { getGraphDimensions } from "../../helpers/getUniSubgraph" const endpoints = { [CHAIN.BSC]: "https://proxy-worker.pancake-swap.workers.dev/bsc-exchange", [CHAIN.ETHEREUM]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exhange-eth", - [CHAIN.POLYGON_ZKEVM]: "https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest" + [CHAIN.POLYGON_ZKEVM]: "https://api.studio.thegraph.com/query/45376/exchange-v2-polygon-zkevm/version/latest", + [CHAIN.ERA]: "https://api.studio.thegraph.com/query/45376/exchange-v2-zksync/version/latest" }; const stablesSwapEndpoints = { @@ -18,7 +19,8 @@ const stablesSwapEndpoints = { const v3Endpoint = { [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-bsc", [CHAIN.ETHEREUM]: "https://api.thegraph.com/subgraphs/name/pancakeswap/exchange-v3-eth", - [CHAIN.POLYGON_ZKEVM]: "https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest" + [CHAIN.POLYGON_ZKEVM]: "https://api.studio.thegraph.com/query/45376/exchange-v3-polygon-zkevm/version/latest", + [CHAIN.ERA]: "https://api.studio.thegraph.com/query/45376/exchange-v3-zksync/version/latest" } const VOLUME_USD = "volumeUSD"; @@ -89,6 +91,7 @@ const startTimes = { [CHAIN.ETHEREUM]: 1664236800, [CHAIN.BSC]: 1619136000, [CHAIN.POLYGON_ZKEVM]: 1687910400, + [CHAIN.ERA]: 1690156800, } as IJSON const stableTimes = { @@ -99,6 +102,7 @@ const v3StartTimes = { [CHAIN.BSC]: 1680307200, [CHAIN.ETHEREUM]: 1680307200, [CHAIN.POLYGON_ZKEVM]: 1686182400, + [CHAIN.ERA]: 1690156800, } as IJSON const methodology = {