Skip to content

Commit ce9c198

Browse files
committed
Bebop add zksync
1 parent 19a9956 commit ce9c198

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

aggregators/bebop/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ const abis = {
3737
const contract_interface = new ethers.Interface(Object.values(abis));
3838

3939
const JamContract = new ethers.Contract('0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b', JAM_ABI)
40+
const jamAddress = {
41+
era:'0x574d1fcF950eb48b11de5DF22A007703cbD2b129',
42+
default: '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b'
43+
}
4044

4145

4246
const fetch = async (timestamp: number, _: ChainBlocks, { createBalances, getLogs, chain, api }: FetchOptions) => {
@@ -80,7 +84,7 @@ const fetch = async (timestamp: number, _: ChainBlocks, { createBalances, getLog
8084
}
8185

8286
const jamLogs = await getLogs({
83-
target: '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b',
87+
target: jamAddress[chain] || jamAddress.default,
8488
topics: ['0x7a70845dec8dc098eecb16e760b0c1569874487f0459ae689c738e281b28ed38'] // Settlement,
8589

8690
});
@@ -111,6 +115,7 @@ const adapter: any = {
111115
polygon: { fetch, start: 1685491200, },
112116
bsc: { fetch, start: 1685491200, },
113117
blast: { fetch, start: 1685491200, },
118+
era: { fetch, start: 1685491200, },
114119
},
115120
};
116121

0 commit comments

Comments
 (0)