Skip to content

Commit

Permalink
Merge pull request #1356 from DefiLlama/fix-stuck-adapter
Browse files Browse the repository at this point in the history
Fix stuck adapter
  • Loading branch information
dtmkeng authored Mar 26, 2024
2 parents ddbe921 + d79e1c1 commit ad2f5f0
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions dexs/DerpDEX/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const endpoints = {
"https://api.studio.thegraph.com/query/49147/derpdex-v3-amm/v0.0.10",
[CHAIN.BASE]:
"https://api.thegraph.com/subgraphs/name/geckocoding/derpdex-amm-base",
[CHAIN.OP_BNB]:
"https://opbnb.subgraph.derpdex.com/subgraphs/name/geckocoding/derpdex-opbnb",
// [CHAIN.OP_BNB]:
// "https://opbnb.subgraph.derpdex.com/subgraphs/name/geckocoding/derpdex-opbnb",
};
const v3StartTimes = {
[CHAIN.ERA]: 1688515200,
[CHAIN.BASE]: 1692296100,
[CHAIN.OP_BNB]: 1695275237,
// [CHAIN.OP_BNB]: 1695275237,
};

const v3Graphs = getGraphDimensions({
Expand Down
12 changes: 6 additions & 6 deletions dexs/hydradex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ const adapter: BreakdownAdapter = {
v2: {
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[CHAIN.HYDRA]: {
fetch: v2Graph(CHAIN.HYDRA),
start: getStartTimestamp({
endpoints: v2Endpoints,
chain: CHAIN.HYDRA,
dailyDataField: 'hydraswapDayDatas',
}),
fetch: async (timestamp: number) => {
return {
timestamp
}
},
start: 0,
meta: {
methodology,
},
Expand Down
6 changes: 5 additions & 1 deletion dexs/makiswap/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { CHAIN } from "../../helpers/chains";
import { univ2Adapter } from "../../helpers/getUniSubgraphVolume";

export default univ2Adapter({
const adapter = univ2Adapter({
[CHAIN.HECO]: "https://api2.makiswap.com/subgraphs/name/maki-mainnet/exchange"
}, {
factoriesName: "pancakeFactories",
dayData: "pancakeDayData"
});

adapter.adapter[CHAIN.HECO].start = 1630000000;
adapter.adapter[CHAIN.HECO].fetch = async (timestamp: number) => { return { timestamp}};
export default adapter;
2 changes: 1 addition & 1 deletion dexs/polkaswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const getDailyVolume = () => {
}`
}

const graphQLClient = new GraphQLClient("https://api.subquery.network/sq/sora-xor/sora-prod-sub4");
const graphQLClient = new GraphQLClient("https://api.subquery.network/sq/sora-xor/sora-prod");
const getGQLClient = () => {
return graphQLClient
}
Expand Down
2 changes: 1 addition & 1 deletion dexs/sushiswap/trident.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const endpointsTrident: Record<string, string> = {
[CHAIN.POLYGON]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-polygon',
[CHAIN.OPTIMISM]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-optimism',
//[CHAIN.KAVA]: 'https://pvt.graph.kava.io/subgraphs/name/sushi-v2/trident-kava',
[CHAIN.METIS]: 'https://andromeda.thegraph.metis.io/subgraphs/name/sushi-v2/trident-metis',
// [CHAIN.METIS]: 'https://andromeda.thegraph.metis.io/subgraphs/name/sushi-v2/trident-metis',
[CHAIN.BITTORRENT]: 'https://subgraphs.sushi.com/subgraphs/name/sushi-v2/trident-bttc',
[CHAIN.ARBITRUM]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-arbitrum',
[CHAIN.BSC]: 'https://api.thegraph.com/subgraphs/name/sushi-v2/trident-bsc',
Expand Down

0 comments on commit ad2f5f0

Please sign in to comment.