Skip to content

Commit

Permalink
Bebop add zksync
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Mar 18, 2024
1 parent 19a9956 commit ce9c198
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aggregators/bebop/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const abis = {
const contract_interface = new ethers.Interface(Object.values(abis));

const JamContract = new ethers.Contract('0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b', JAM_ABI)
const jamAddress = {
era:'0x574d1fcF950eb48b11de5DF22A007703cbD2b129',
default: '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b'
}


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

const jamLogs = await getLogs({
target: '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b',
target: jamAddress[chain] || jamAddress.default,
topics: ['0x7a70845dec8dc098eecb16e760b0c1569874487f0459ae689c738e281b28ed38'] // Settlement,

});
Expand Down Expand Up @@ -111,6 +115,7 @@ const adapter: any = {
polygon: { fetch, start: 1685491200, },
bsc: { fetch, start: 1685491200, },
blast: { fetch, start: 1685491200, },
era: { fetch, start: 1685491200, },
},
};

Expand Down

0 comments on commit ce9c198

Please sign in to comment.