Skip to content

Commit

Permalink
fix stuck adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Mar 26, 2024
1 parent ddbe921 commit 8c2c761
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 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;

0 comments on commit 8c2c761

Please sign in to comment.