Skip to content

Commit

Permalink
fix start time
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Nov 1, 2023
1 parent a749599 commit d68185c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions dexs/kinetix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { CHAIN } from "../../helpers/chains";
import { getUniqStartOfTodayTimestamp } from "../../helpers/getUniSubgraphVolume";

const endpoints: { [key: string]: string } = {
[CHAIN.KAVA]:
"https://kava-graph-node.metavault.trade/subgraphs/name/kinetixfi/kfi-subgraph",
[CHAIN.KAVA]: "https://kava-graph-node.metavault.trade/subgraphs/name/kinetixfi/kfi-subgraph",
};

const historicalData = gql`
Expand Down Expand Up @@ -78,7 +77,7 @@ const getFetch =

const getStartTimestamp = async (chain: string) => {
const startTimestamps: { [chain: string]: number } = {
[CHAIN.KAVA]: 1654041600,
[CHAIN.KAVA]: 1693267200,
};
return startTimestamps[chain];
};
Expand All @@ -90,7 +89,6 @@ const adapter: SimpleAdapter = {
[chain]: {
fetch: getFetch(chain),
start: async () => getStartTimestamp(chain),
runAtCurrTime: true,
},
};
}, {}),
Expand Down
2 changes: 1 addition & 1 deletion fees/kinetix/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const adapter: Adapter = {
adapter: {
[CHAIN.KAVA]: {
fetch: graphs(endpoints)(CHAIN.KAVA),
start: async () => 5995754,
start: async () => 1693267200,
meta: {
methodology:
"All mint, burn, marginAndLiquidation and swap fees are collected and the daily fee amount is determined. Daily revenue is calculated as 30% of the total fee.",
Expand Down

0 comments on commit d68185c

Please sign in to comment.