Skip to content

Commit

Permalink
fix starkdef
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Feb 9, 2024
1 parent 75fbe86 commit aea8c3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions dexs/capricorn-finance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,13 @@ const adapters = univ2Adapter({
dayData: "hswapDayData",
});

adapters.adapter[CHAIN.CUBE].start = 1630000000;
adapters.adapter[CHAIN.CUBE].fetch = async (timestamp: number) => {
return {
dailyVolume: 0,
timestamp,
}
}

adapters.adapter[DISABLED_ADAPTER_KEY] = disabledAdapter;
export default adapters;
2 changes: 1 addition & 1 deletion dexs/starkdefi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fetch = async (timestamp: number) => {
const dayTimestamp = getUniqStartOfTodayTimestamp(new Date(timestamp * 1000));
const historicalVolume: TVolume = (
await fetchURL("https://api.starkdefi.com/v1/analytics/daily-volume")
).data;
);
const totalVolume = Object.values(historicalVolume).reduce(
(acc, volume) => acc + volume,
0
Expand Down

0 comments on commit aea8c3e

Please sign in to comment.