From 1644e607e58a29f4e77b9bec868902827bb4811a Mon Sep 17 00:00:00 2001 From: michaelotis Date: Fri, 30 Jun 2023 11:42:54 -0500 Subject: [PATCH] Update vela graph and starting epoch for official launch --- dexs/vela/index.ts | 6 +++--- fees/vela/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dexs/vela/index.ts b/dexs/vela/index.ts index 6a2cd2addc..faea517b6e 100644 --- a/dexs/vela/index.ts +++ b/dexs/vela/index.ts @@ -7,7 +7,7 @@ import { getTimestampAtStartOfDayUTC } from "../../utils/date"; const endpoints = { [CHAIN.ARBITRUM]: - "https://api.thegraph.com/subgraphs/name/tskweres/vela-exchange-v2", + "https://api.thegraph.com/subgraphs/name/velaexchange/vela-exchange-official", }; const graphs = (graphUrls: ChainEndpoints) => { @@ -16,7 +16,7 @@ const graphs = (graphUrls: ChainEndpoints) => { const todaysTimestamp = getTimestampAtStartOfDayUTC(timestamp); const graphQuery = gql` query { - dailyGlobalInfos(where: { id: "global-day-${todaysTimestamp}" }) { + dailyGlobalInfos(where: { timestamp: ${todaysTimestamp} }) { tradeVolume } globalInfos(where: { id: "all" }) { @@ -43,7 +43,7 @@ const adapter: Adapter = { adapter: { [CHAIN.ARBITRUM]: { fetch: graphs(endpoints)(CHAIN.ARBITRUM), - start: async () => 1675288800, + start: async () => 1687806000, }, }, }; diff --git a/fees/vela/index.ts b/fees/vela/index.ts index 1f6ac2eaf7..d618bad8a6 100644 --- a/fees/vela/index.ts +++ b/fees/vela/index.ts @@ -7,7 +7,7 @@ import { getTimestampAtStartOfDayUTC } from "../../utils/date"; const endpoints = { [ARBITRUM]: - "https://api.thegraph.com/subgraphs/name/velaexchange/vela-exchange", + "https://api.thegraph.com/subgraphs/name/velaexchange/vela-exchange-official", }; const methodology = { @@ -20,7 +20,7 @@ const graphs = (graphUrls: ChainEndpoints) => { const todaysTimestamp = getTimestampAtStartOfDayUTC(timestamp); const graphQuery = gql` { - dailyGlobalInfos(where: { id: "global-day-${todaysTimestamp}" }) { + dailyGlobalInfos(where: { timestamp: ${todaysTimestamp} }) { fees } } @@ -39,7 +39,7 @@ const adapter: Adapter = { adapter: { [ARBITRUM]: { fetch: graphs(endpoints)(ARBITRUM), - start: async () => 1674864612, + start: async () => 1687806000, meta: { methodology, },