Skip to content

Commit

Permalink
add eth and polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Nov 7, 2023
1 parent 27950b6 commit 62932df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dexs/contango/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ type IEndpoint = {
const endpoint: IEndpoint = {
[CHAIN.ARBITRUM]: "https://api.thegraph.com/subgraphs/name/contango-xyz/v2-arbitrum",
[CHAIN.OPTIMISM]: "https://api.thegraph.com/subgraphs/name/contango-xyz/v2-optimism",
[CHAIN.ETHEREUM]: "https://api.thegraph.com/subgraphs/name/contango-xyz/v2-mainnet",
[CHAIN.POLYGON]: "https://api.thegraph.com/subgraphs/name/contango-xyz/v2-polygon",
}

interface IAssetTotals {
Expand Down Expand Up @@ -112,6 +114,14 @@ const adapter: SimpleAdapter = {
fetch: fetchVolume(CHAIN.OPTIMISM),
start: async () => 1696291200,
},
[CHAIN.ETHEREUM]: {
fetch: fetchVolume(CHAIN.ETHEREUM),
start: async () => 1696291200,
},
[CHAIN.POLYGON]: {
fetch: fetchVolume(CHAIN.POLYGON),
start: async () => 1696291200,
},
}
};
export default adapter;

0 comments on commit 62932df

Please sign in to comment.