Skip to content

Commit b09be3a

Browse files
committed
fix uniswap v2
1 parent 8a19924 commit b09be3a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dexs/uniswap-v2.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const chainv2mapping: any = {
1818
[CHAIN.ETHEREUM]: "ETHEREUM",
1919
[CHAIN.POLYGON]: "POLYGON",
2020
[CHAIN.BASE]: "BASE",
21-
[CHAIN.BSC]: "BNB",
21+
// [CHAIN.BSC]: "BNB",
2222
[CHAIN.OPTIMISM]: "OPTIMISM",
2323
[CHAIN.UNICHAIN]: "UNI",
2424
}
@@ -62,12 +62,12 @@ const adapter: SimpleAdapter = {
6262
version: 1,
6363
methodology,
6464
adapter: {
65-
// [CHAIN.UNICHAIN]: {
66-
// fetch: async (_t:any, _tb: any , options: FetchOptions) => {
67-
// const fetchFunction = getUniV2LogAdapter({ factory: '0x1f98400000000000000000000000000000000002', ...getLogAdapterConfig})
68-
// return await fetchFunction(options);
69-
// },
70-
// },
65+
[CHAIN.BSC]: {
66+
fetch: async (_t:any, _tb: any , options: FetchOptions) => {
67+
const fetchFunction = getUniV2LogAdapter({ factory: '0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6', ...getLogAdapterConfig})
68+
return await fetchFunction(options);
69+
},
70+
},
7171
...Object.keys(chainv2mapping).reduce((acc: any, chain) => {
7272
acc[chain] = {
7373
fetch: fetchV2Volume,

0 commit comments

Comments
 (0)