Skip to content

Commit

Permalink
fix logx
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Sep 15, 2024
1 parent f4024e5 commit 1db2f7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dexs/logx/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import fetchURL from "../../utils/fetchURL";
import { FetchResult, SimpleAdapter } from "../../adapters/types";
import { CHAIN } from "../../helpers/chains";


const URLEndpoint = "https://apiserver.logx.network/api/v1/stats/defillama?endTime=";
const startTimestamp = 1725580800; // 06.09.2024
Expand All @@ -21,11 +23,11 @@ const fetch = async (timestamp: number): Promise<FetchResult> => {

const adapter: SimpleAdapter = {
adapter: {
"logx network": {
[CHAIN.LOGX]: {
fetch,
start: startTimestamp,
},
}
};

export default adapter;
export default adapter;
1 change: 1 addition & 0 deletions helpers/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export enum CHAIN {
IMMUTABLEX = "immutablex",
CHAINFLIP = "chainflip",
CRONOS_ZKEVM = "cronos_zkevm",
LOGX = "logx_network",
}

// Don´t use
Expand Down

0 comments on commit 1db2f7e

Please sign in to comment.