Skip to content

Commit

Permalink
add base
Browse files Browse the repository at this point in the history
  • Loading branch information
supakawaiidesu committed Aug 10, 2023
1 parent d516dae commit 4d95511
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dexs/unidex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const endpoints: TUrl = {
[CHAIN.FANTOM]: 'https://api.thegraph.com/subgraphs/name/unidex-finance/fantomleveragev2',
[CHAIN.METIS]: 'https://unidexcronos.xyz/subgraphs/name/unidex-finance/leveragev2',
[CHAIN.ARBITRUM]: 'https://api.thegraph.com/subgraphs/name/unidex-finance/arbitrumleveragev2',
[CHAIN.BASE]: 'https://base.tempsubgraph.xyz/subgraphs/name/unidex-finance/baseleveragev2',
}

interface IDTrade {
Expand Down Expand Up @@ -54,6 +55,11 @@ const fetch = (chain: Chain) => {
"arbitrum:0x0Ae38f7E10A43B5b2fB064B42a2f4514cbA909ef",
];
break;
case CHAIN.BASE:
tokenIds = [
"base:0x0000000000000000000000000000000000000000",
];
break;
// Add cases for other chains if needed
}

Expand Down Expand Up @@ -114,6 +120,13 @@ const adapter: SimpleAdapter = {
methodology
}
},
[CHAIN.BASE]: {
fetch: fetch(CHAIN.BASE),
start: async () => 1687422746,
meta: {
methodology
}
},
[CHAIN.FANTOM]: {
fetch: fetch(CHAIN.FANTOM),
start: async () => 1687422746,
Expand Down

0 comments on commit 4d95511

Please sign in to comment.