Skip to content

Commit

Permalink
fix time stam
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 15, 2024
1 parent 683b3a4 commit 0ce23b8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions dexs/symmetric/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,23 @@ const v2Graphs = (chain: Chain) => {
};
};

type TTime = {
[s: string]: number;
}
const startTimes: TTime = {
[CHAIN.XDAI]: 1655251200,
[CHAIN.CELO]: 1654560000,
[CHAIN.TELOS]: 1699920000,
}

const adapter: BreakdownAdapter = {
breakdown: {
v2: Object.keys(endpoints).reduce((acc, chain) => {
return {
...acc,
[chain]: {
fetch: v2Graphs(chain),
start: getStartTimestamp({
endpoints,
chain: chain,
dailyDataField: `balancerSnapshots`,
dateField: 'timestamp',
volumeField: 'totalSwapVolume'
}),
start: startTimes[chain],
}
}
}, {} as BaseAdapter)
Expand Down

0 comments on commit 0ce23b8

Please sign in to comment.