Skip to content

Commit

Permalink
disable el-dorado-exchange
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Apr 18, 2024
1 parent 3b796b8 commit 5f3482d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dexs/el-dorado-exchange/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import request, { gql } from "graphql-request";
import {BreakdownAdapter, Fetch, SimpleAdapter} from "../../adapters/types";
import {BreakdownAdapter, DISABLED_ADAPTER_KEY, Fetch, SimpleAdapter} from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";
import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume";
import disabledAdapter from "../../helpers/disabledAdapter";

const endpoints: { [key: string]: string } = {
// [CHAIN.BSC]: "https://api.thegraph.com/subgraphs/name/metaverseblock/ede_stats_elpall_test",
Expand Down Expand Up @@ -79,21 +80,25 @@ const startTimestamps: { [chain: string]: number } = {


const adapter: BreakdownAdapter = {

breakdown: {

"swap": Object.keys(endpoints).reduce((acc, chain) => {
return {
...acc,
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[chain]: {
fetch: getFetch(historicalDataSwap)(chain),
fetch: async (timestamp: number) => {return {timestamp}},
start: startTimestamps[chain]
}
}
}, {}),
"derivatives": Object.keys(endpoints).reduce((acc, chain) => {
return {
...acc,
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[chain]: {
fetch: getFetch(historicalDataDerivatives)(chain),
fetch: async (timestamp: number) => {return {timestamp}},
start: startTimestamps[chain]
}
}
Expand Down

0 comments on commit 5f3482d

Please sign in to comment.