Skip to content

Commit

Permalink
add more uniswap fee collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Apr 13, 2024
1 parent a3593af commit 4954674
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fees/uniswap-lab.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import ADDRESSES from '../helpers/coreAssets.json'
import { ChainBlocks, FetchOptions, FetchResultFees, SimpleAdapter } from "../adapters/types";
import { CHAIN } from "../helpers/chains";
import { addTokensReceived } from '../helpers/token';

const config: any = {
ethereum: { tokens: [ADDRESSES.ethereum.USDC], targets: ['0x163c5e051049e92915017fe7bb9b8ce6182bcbb1', '0x6460d14dbaeb27aefec8ebef85db35defa31c3b9', '0x27213E28D7fDA5c57Fe9e5dD923818DBCcf71c47'] },
optimism: { tokens: [ADDRESSES.optimism.USDC_CIRCLE], targets: ['0xd4ce1f1b8640c1988360a6729d9a73c85a0c80a3'] },
polygon: { tokens: [ADDRESSES.polygon.USDC, ADDRESSES.polygon.USDC_CIRCLE], targets: ['0xce946931adf7afc0797de2a76270a28458f487ed'] },
arbitrum: { tokens: [ADDRESSES.arbitrum.USDC_CIRCLE], targets: ['0xd4ce1f1b8640c1988360a6729d9a73c85a0c80a3'] },
optimism: { tokens: [ADDRESSES.optimism.USDC_CIRCLE], targets: ['0xd4ce1f1b8640c1988360a6729d9a73c85a0c80a3', '0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14'] },
polygon: { tokens: [ADDRESSES.polygon.USDC, ADDRESSES.polygon.USDC_CIRCLE], targets: ['0xce946931adf7afc0797de2a76270a28458f487ed', '0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14'] },
arbitrum: { tokens: [ADDRESSES.arbitrum.USDC_CIRCLE], targets: ['0xd4ce1f1b8640c1988360a6729d9a73c85a0c80a3', '0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14'] },
base: {tokens: [ADDRESSES.base.USDC], targets: ["0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14"]},
bsc: {tokens: [ADDRESSES.bsc.USDC], targets: ["0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14"]},
avax: {tokens: [ADDRESSES.avax.USDC], targets: ["0x7ffc3dbf3b2b50ff3a1d5523bc24bb5043837b14"]},
}

const fetch = async (timestamp: number, _: ChainBlocks, options: FetchOptions): Promise<FetchResultFees> => {
Expand All @@ -16,11 +18,9 @@ const fetch = async (timestamp: number, _: ChainBlocks, options: FetchOptions):
}

const adapters: SimpleAdapter = {
adapter: {
[CHAIN.ETHEREUM]: { fetch, start: 1696896000 },
[CHAIN.OPTIMISM]: { fetch, start: 1696896000 },
[CHAIN.POLYGON]: { fetch, start: 1696896000 },
[CHAIN.ARBITRUM]: { fetch, start: 1696896000 }
}
adapter: Object.keys(config).reduce((all, chain)=>({
...all,
[chain]: { fetch, start: 1696896000 }
}), {})
}
export default adapters;

0 comments on commit 4954674

Please sign in to comment.