Skip to content

Commit b95bb44

Browse files
committed
Get start time from subgraph
1 parent 0129966 commit b95bb44

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dexVolumes/spookyswap/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DexVolumeAdapter } from "../dexVolume.type";
2+
import { getStartTimestamp } from "../helper/getStartTimestamp";
23

34
const { getChainVolume } = require("../helper/getUniSubgraphVolume");
45
const { FANTOM } = require("../helper/chains");
@@ -16,7 +17,10 @@ const adapter: DexVolumeAdapter = {
1617
volume: {
1718
[FANTOM]: {
1819
fetch: graphs(FANTOM),
19-
start: async () => 1618617600,
20+
start: getStartTimestamp({
21+
endpoints,
22+
chain: FANTOM
23+
}),
2024
},
2125
},
2226
};

0 commit comments

Comments
 (0)