Skip to content

Commit

Permalink
Fix start time in adapter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Feb 3, 2024
1 parent f087417 commit cbedf61
Show file tree
Hide file tree
Showing 570 changed files with 1,130 additions and 1,246 deletions.
2 changes: 1 addition & 1 deletion aggregator-derivatives/logx-aggregator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ARBITRUM]: {
fetch,
start: async () => startTimestamp,
start: startTimestamp,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/1inch-agg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const adapter: any = {
...acc,
[(chainsMap as any)[chain] || chain]: {
fetch: fetch(chain),
start: async () => 1701734400,
start: 1701734400,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/aftermath-aggregator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.SUI]: {
fetch,
start: async () => 1689811200
start: 1689811200
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/aggre/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const adapter: SimpleAdapter = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1698660910,
start: 1698660910,
}
}
}, {})
Expand Down
2 changes: 1 addition & 1 deletion aggregators/arcane-dex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const adapters: SimpleAdapter = {
adapter: {
[CHAIN.ARBITRUM]: {
fetch: fetchVolume,
start: async () => 1700092800
start: 1700092800
,
}
}
Expand Down
2 changes: 1 addition & 1 deletion aggregators/avnu/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.STARKNET]: {
fetch,
start: async () => startTimestamp,
start: startTimestamp,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/conveyor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const adapter: any = {
...acc,
[(chainsMap as any)[chain] || chain]: {
fetch: fetch(chain),
start: async () => 1692897682,
start: 1692897682,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/cowswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const adapter: any = {
...acc,
[(chainsMap as any)[chain] || chain]: {
fetch: fetch(),
start: async () => 1639526400,
start: 1639526400,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/deflex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const adapter: SimpleAdapter = {
fetch,
runAtCurrTime: true,
customBackfill: undefined,
start: async () => 0,
start: 0,
},
}
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/dexhunter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.CARDANO]: {
fetch,
start: async () => startTimestamp,
start: startTimestamp,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/dforce/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1679097600,
start: 1679097600,
runAtCurrTime: true
}
}
Expand Down
2 changes: 1 addition & 1 deletion aggregators/jumper-exchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const adapter: SimpleAdapter = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1691625600,
start: 1691625600,
}
}
}, {})
Expand Down
2 changes: 1 addition & 1 deletion aggregators/kanalabs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const adapter: SimpleAdapter = {
[CHAIN.ETHEREUM]: {
fetch,
runAtCurrTime: true,
start: async () => 1695897839,
start: 1695897839,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/kyberswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const adapter: any = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1685491200,
start: 1685491200,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/llamaswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const adapter: SimpleAdapter = {
chains.map((chain) => {
adapter.adapter[chain] = {
fetch: fetch(chain),
start: async () => startTimestamp,
start: startTimestamp,
};
});

Expand Down
2 changes: 1 addition & 1 deletion aggregators/logx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ARBITRUM]: {
fetch,
start: async () => startTimestamp,
start: startTimestamp,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/openocean/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const adapter: any = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => new Date(2023, 6, 1).getTime() / 1000,
start: new Date(2023, 6, 1).getTime() / 1000,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/plexus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const adapter: SimpleAdapter = {
...acc,
[chain]: {
fetch: fetch(ChainId[chain]),
start: async () => 1675209600,
start: 1675209600,
},
};
}, {}),
Expand Down
5 changes: 1 addition & 4 deletions aggregators/swapgpt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,11 @@ const fetch = async (timestamp: number) => {
};
};

const getStartTimestamp = async () => {
return (new Date('2023-11-28T00:00:00.000Z').getTime() / 1000);
}
const adapter: SimpleAdapter = {
adapter: {
[CHAIN.APTOS]: {
fetch: fetch,
start: getStartTimestamp,
start: (new Date('2023-11-28T00:00:00.000Z').getTime() / 1000),
}
},
};
Expand Down
2 changes: 1 addition & 1 deletion aggregators/unidex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const adapter: any = {
...acc,
[(chainsMap as any)[chain] || chain]: {
fetch: fetch(chain),
start: async () => 1704348000,
start: 1704348000,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/yield-yak/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const adapter: any = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1685491200,
start: 1685491200,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion aggregators/zrx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const adapter: any = {
...acc,
[chain]: {
fetch: fetch(chain),
start: async () => 1671062400,
start: 1671062400,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion dexs/0x/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const adapter: BreakdownAdapter = {
...acc,
[chain]: {
fetch: getFetch(chain),
start: async () => 0
start: 0
}
}
}, {})
Expand Down
2 changes: 1 addition & 1 deletion dexs/10kswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.STARKNET]: {
fetch,
start: async () => 1663545600
start: 1663545600
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/4swap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const adapter: SimpleAdapter = {
fetch,
runAtCurrTime: true,
customBackfill: undefined,
start: async () => 0,
start: 0,
},
}
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/ArbitrumExchange/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const adapter: BreakdownAdapter = {
v3: Object.keys(v3Endpoints).reduce((acc, chain) => {
acc[chain] = {
fetch: v3Graphs(chain as Chain),
start: async () => startTimeV3[chain],
start: startTimeV3[chain],
meta: {
methodology: {
...methodology,
Expand Down
2 changes: 1 addition & 1 deletion dexs/ICDex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const adapter: Adapter = {
adapter: {
[CHAIN.ICP]: {
fetch: fetch,
start: async () => 1705363200,
start: 1705363200,
},
}
};
Expand Down
4 changes: 2 additions & 2 deletions dexs/MantisSwap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.POLYGON]: {
fetch: fetch("137"),
start: async () => 1679309404,
start: 1679309404,
},
[CHAIN.POLYGON_ZKEVM]: {
fetch: fetch("1101"),
start: async () => 1685355566,
start: 1685355566,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/Scale/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.BASE]: {
fetch: getDexVolumeExports({ chain: CHAIN.BASE, factory: FACTORY_ADDRESS }),
start: async () => 1695458888,
start: 1695458888,
},
}
};
Expand Down
10 changes: 5 additions & 5 deletions dexs/SmarDex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ETHEREUM]: {
fetch: graphs(CHAIN.ETHEREUM),
start: async () => 1678404995, // birthBlock timestamp
start: 1678404995, // birthBlock timestamp
},
[CHAIN.BSC]: {
fetch: graphs(CHAIN.BSC),
start: async () => 1689581494,
start: 1689581494,
},
[CHAIN.POLYGON]: {
fetch: graphs(CHAIN.POLYGON),
start: async () => 1689582144,
start: 1689582144,
},
[CHAIN.ARBITRUM]: {
fetch: graphs(CHAIN.ARBITRUM),
start: async () => 1689582249,
start: 1689582249,
},
[CHAIN.BASE]: {
fetch: graphs(CHAIN.BASE),
start: async () => 1691491872,
start: 1691491872,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/SubstanceX/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const adapter: Adapter = {
adapter: {
[CHAIN.ARBITRUM]: {
fetch: graphs(endpoints)(CHAIN.ARBITRUM),
start: async () => 1700323200,
start: 1700323200,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/aark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ARBITRUM]: {
fetch: fetch,
start: async () => 1691845200,
start: 1691845200,
},
},
};
Expand Down
10 changes: 5 additions & 5 deletions dexs/abcdefx/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const graph = (_chain: Chain) =>

const adapter: SimpleAdapter = {
adapter: {
[CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: async () => 1670188701 },
//[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: async () => 1670226950 }, /// ! typeof CHAIN
[CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: async () => 1671580916 },
//[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: async () => 1671608400 }, /// ded!?
[CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: async () => 1676855943 }
[CHAIN.KCC]: { fetch: graph(CHAIN.KCC), start: 1670188701 },
//[CHAIN.MULTIVAC]: { fetch: graph(CHAIN.MULTIVAC), start: 1670226950 }, /// ! typeof CHAIN
[CHAIN.FANTOM]: { fetch: graph(CHAIN.FANTOM), start: 1671580916 },
//[CHAIN.ECHELON]: { fetch: graph(CHAIN.ECHELON), start: 1671608400 }, /// ded!?
[CHAIN.KAVA]: { fetch: graph(CHAIN.KAVA), start: 1676855943 }
}
};

Expand Down
2 changes: 1 addition & 1 deletion dexs/acala-swap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ACALA]: {
fetch: fetch,
start: async () => 1671667200
start: 1671667200
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/aequinox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const adapter: SimpleAdapter = {
[DISABLED_ADAPTER_KEY]: disabledAdapter,
[CHAIN.BSC]: {
fetch: fetch,
start: async () => 1673568000
start: 1673568000
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/aerodrome/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const adapters: SimpleAdapter = {
adapter: {
[CHAIN.BASE]: {
fetch: fetch,
start: async () => 1693180800,
start: 1693180800,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion dexs/aevo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.ETHEREUM]: {
fetch: fetchAevoVolumeData,
start: async () => 1681430400
start: 1681430400
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/aftermath-fi-amm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.SUI]: {
fetch,
start: async () => 1689811200
start: 1689811200
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion dexs/agni-fi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const adapter: SimpleAdapter = {
adapter: {
[CHAIN.MANTLE]: {
fetch: v3Graphs(CHAIN.MANTLE),
start: async () => 1689724800,
start: 1689724800,
},
},
};
Expand Down
Loading

0 comments on commit cbedf61

Please sign in to comment.