Skip to content

Commit

Permalink
pancakeswap era
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jul 26, 2023
1 parent 529c5f2 commit b1c136b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions protocols/pancakeswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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";
Expand Down Expand Up @@ -89,6 +91,7 @@ const startTimes = {
[CHAIN.ETHEREUM]: 1664236800,
[CHAIN.BSC]: 1619136000,
[CHAIN.POLYGON_ZKEVM]: 1687910400,
[CHAIN.ERA]: 1690156800,
} as IJSON<number>

const stableTimes = {
Expand All @@ -99,6 +102,7 @@ const v3StartTimes = {
[CHAIN.BSC]: 1680307200,
[CHAIN.ETHEREUM]: 1680307200,
[CHAIN.POLYGON_ZKEVM]: 1686182400,
[CHAIN.ERA]: 1690156800,
} as IJSON<number>

const methodology = {
Expand Down

0 comments on commit b1c136b

Please sign in to comment.