Skip to content

Commit

Permalink
DackieSwap update volume Linea
Browse files Browse the repository at this point in the history
  • Loading branch information
DackieSwap committed Aug 31, 2024
1 parent d097cd3 commit e117ed3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dexs/dackieswap-v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const endpoints: ChainEndpoints = {
[CHAIN.BLAST]: "https://api.studio.thegraph.com/query/50473/v2-blast/version/latest",
[CHAIN.MODE]: "https://api.studio.thegraph.com/query/50473/v2-mode/version/latest",
[CHAIN.XLAYER]: "https://api.studio.thegraph.com/query/50473/v2-xlayer/version/latest",
[CHAIN.LINEA]: "https://api.studio.thegraph.com/query/50473/v2-linea/version/latest",
};

// Fetch function to query the subgraphs
Expand Down Expand Up @@ -57,7 +58,8 @@ const adapter: SimpleAdapter = {
: chain === CHAIN.BLAST ? 1709722800
: chain === CHAIN.MODE ? 1712371653
: chain === CHAIN.XLAYER ? 1712369493
: 0,
: chain === CHAIN.LINEA ? 1725062400
: 0,
customBackfill: customBackfill(chain, graphs),
meta: {methodology},
}
Expand Down
7 changes: 7 additions & 0 deletions dexs/dackieswap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const v3Endpoint = {
"https://api.studio.thegraph.com/query/50473/v3-mode/version/latest",
[CHAIN.XLAYER]:
"https://api.studio.thegraph.com/query/50473/v3-xlayer/version/latest",
[CHAIN.LINEA]:
"https://api.studio.thegraph.com/query/50473/v3-linea/version/latest",
};

const VOLUME_USD = "volumeUSD";
Expand Down Expand Up @@ -45,6 +47,7 @@ const v3StartTimes = {
[CHAIN.BLAST]: 1709722800,
[CHAIN.MODE]: 1712371653,
[CHAIN.XLAYER]: 1712369493,
[CHAIN.LINEA]: 1725062400,
} as IJSON<number>;

const adapter: SimpleAdapter = {
Expand Down Expand Up @@ -73,6 +76,10 @@ const adapter: SimpleAdapter = {
fetch: v3Graph(CHAIN.XLAYER),
start: async () => v3StartTimes[CHAIN.XLAYER]
},
[CHAIN.LINEA]: {
fetch: v3Graph(CHAIN.LINEA),
start: async () => v3StartTimes[CHAIN.LINEA]
},
},
version: 2
};
Expand Down

0 comments on commit e117ed3

Please sign in to comment.