Skip to content

Commit ca6f3ef

Browse files
moose-codeclaude
andcommitted
fix: index crypto factories on all chains + zero all start blocks
Crypto factories (tricrypto/twocrypto-NG) were only configured on Ethereum and Arbitrum, so all tricrypto/twocrypto pools + swaps on the other 9 chains (Optimism, Base, Polygon, Gnosis, BSC, Fantom, Fraxtal, Sonic, Avalanche) were unindexed — the main coverage gap behind the low event count. Add TricryptoFactoryNG + TwocryptoFactoryNG + CryptoPool to each (Fantom has no tricrypto factory). This also explains Sonic's 0 pools — its pools are crypto. Set every chain start_block to 0 and drop all per-contract start blocks: HyperSync skips empty ranges fast, so this guarantees no pool is missed to a too-late start (and removes the start-block bookkeeping entirely). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent cbaf76a commit ca6f3ef

1 file changed

Lines changed: 71 additions & 23 deletions

File tree

config.yaml

Lines changed: 71 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ contracts:
151151
chains:
152152
# Ethereum Mainnet
153153
- id: 1
154-
start_block: 10647879
154+
start_block: 0
155155
contracts:
156156
- name: GaugeController
157157
address:
@@ -160,12 +160,10 @@ chains:
160160
- name: VotingEscrow
161161
address:
162162
- 0x5f3b5DfEb7B28CDbD7FAba78963EE202a494e2A2
163-
start_block: 10650387
164163
- name: FeeDistributor
165164
address:
166165
- 0xA464e6DCda8AC41e03616F95f4BC98a13b8922Dc
167166
- 0xD16d5eC345Dd86Fb63C6a9C43c517210F1027914
168-
start_block: 11362396
169167
- name: TricryptoFactoryNG
170168
address:
171169
- 0x0c0e5f2fF0ff18a3be9b835635039256dC4B4963
@@ -185,7 +183,6 @@ chains:
185183
- name: StableswapFactoryNG
186184
address:
187185
- 0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf
188-
start_block: 18433925
189186
- name: StableswapPool
190187
- name: MainRegistry
191188
address:
@@ -194,30 +191,26 @@ chains:
194191
- name: OneWayLendingFactory
195192
address:
196193
- 0xea6876dde9e3467564acbee1ed5bac88783205e0
197-
start_block: 19422666
198194
- name: LendController
199195
- name: LendAMM
200196
- name: LendVault
201197
- name: CrvUsdControllerFactory
202198
address:
203199
- 0xC9332fdCB1C491Dcc683bAe86Fe3cb70360738BC
204-
start_block: 17257965
205200
- name: ScrvUsdVault
206201
address:
207202
- 0x0655977FEb2f289A4aB78af67BAB0d17aAb84367
208-
start_block: 21087964
209203
- name: PegKeeper
210204
address:
211205
- 0x9201da0D97CaAAff53f01B2fB56767C7072dE340
212206
- 0xFb726F57d251aB5C731E5C64eD4F5F94351eF9F3
213207
- 0x3fA20eAa107DE08B38a8734063D605d5842fe09C
214208
- 0x338Cb2D827112d989A861cDe87CD9FfD913A1f9D
215209
- 0x53876B157DeCf04389eEd66c7C29d73863f8C50b
216-
start_block: 20300000
217210

218211
# Arbitrum
219212
- id: 42161
220-
start_block: 50000000
213+
start_block: 0
221214
contracts:
222215
- name: TricryptoFactoryNG
223216
address:
@@ -229,113 +222,168 @@ chains:
229222
- name: StableswapFactoryNG
230223
address:
231224
- 0x9AF14D26075f142eb3F292D5065EB3faa646167b
232-
start_block: 144181239
233225
- name: StableswapPool
234226
- name: OneWayLendingFactory
235227
address:
236228
- 0xcaEC110C784c9DF37240a8Ce096D352A75922DeA
237-
start_block: 193652607
238229
- name: LendController
239230
- name: LendAMM
240231
- name: LendVault
241232

242233
# Optimism
243234
- id: 10
244-
start_block: 111362244
235+
start_block: 0
245236
contracts:
237+
- name: TricryptoFactoryNG
238+
address:
239+
- 0xc6C09471Ee39C7E30a067952FcC89c8922f9Ab53
240+
- name: TwocryptoFactoryNG
241+
address:
242+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
243+
- name: CryptoPool
246244
- name: StableswapFactoryNG
247245
address:
248246
- 0x5eeE3091f747E60a045a2E715a4c71e600e31F6E
249247
- name: StableswapPool
250248
- name: OneWayLendingFactory
251249
address:
252250
- 0x5EA8f3D674C70b020586933A0a5b250734798BeF
253-
start_block: 125072267
254251
- name: LendController
255252
- name: LendAMM
256253
- name: LendVault
257254

258255
# Base
259256
- id: 8453
260-
start_block: 7886150
257+
start_block: 0
261258
contracts:
259+
- name: TricryptoFactoryNG
260+
address:
261+
- 0xA5961898870943c68037F6848d2D866Ed2016bcB
262+
- name: TwocryptoFactoryNG
263+
address:
264+
- 0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F
265+
- name: CryptoPool
262266
- name: StableswapFactoryNG
263267
address:
264268
- 0xd2002373543Ce3527023C75e7518C274A51ce712
265269
- name: StableswapPool
266270

267271
# Polygon
268272
- id: 137
269-
start_block: 50625140
273+
start_block: 0
270274
contracts:
275+
- name: TricryptoFactoryNG
276+
address:
277+
- 0xC1b393EfEF38140662b91441C6710Aa704973228
278+
- name: TwocryptoFactoryNG
279+
address:
280+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
281+
- name: CryptoPool
271282
- name: StableswapFactoryNG
272283
address:
273284
- 0x1764ee18e8B3ccA4787249Ceb249356192594585
274285
- name: StableswapPool
275286

276287
# Gnosis (xDai)
277288
- id: 100
278-
start_block: 30507817
289+
start_block: 0
279290
contracts:
291+
- name: TricryptoFactoryNG
292+
address:
293+
- 0xb47988ad49dce8d909c6f9cf7b26caf04e1445c8
294+
- name: TwocryptoFactoryNG
295+
address:
296+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
297+
- name: CryptoPool
280298
- name: StableswapFactoryNG
281299
address:
282300
- 0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8
283301
- name: StableswapPool
284302

285303
# BSC
286304
- id: 56
287-
start_block: 34487718
305+
start_block: 0
288306
contracts:
307+
- name: TricryptoFactoryNG
308+
address:
309+
- 0x38f8D93406fA2d9924DcFcB67dB5B0521Fb20F7D
310+
- name: TwocryptoFactoryNG
311+
address:
312+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
313+
- name: CryptoPool
289314
- name: StableswapFactoryNG
290315
address:
291316
- 0xd7E72f3615aa65b92A4DBdC211E296a35512988B
292317
- name: StableswapPool
293318

294319
# Fantom
295320
- id: 250
296-
start_block: 72534264
321+
start_block: 0
297322
contracts:
323+
- name: TwocryptoFactoryNG
324+
address:
325+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
326+
- name: CryptoPool
298327
- name: StableswapFactoryNG
299328
address:
300329
- 0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b
301330
- name: StableswapPool
302331

303332
# Fraxtal
304333
- id: 252
305-
start_block: 1911424
334+
start_block: 0
306335
contracts:
336+
- name: TricryptoFactoryNG
337+
address:
338+
- 0xc9Fe0C63Af9A39402e8a5514f9c43Af0322b665F
339+
- name: TwocryptoFactoryNG
340+
address:
341+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
342+
- name: CryptoPool
307343
- name: StableswapFactoryNG
308344
address:
309345
- 0xd2002373543Ce3527023C75e7518C274A51ce712
310346
- name: StableswapPool
311347
- name: OneWayLendingFactory
312348
address:
313349
- 0xf3c9bdAB17B7016fBE3B77D17b1602A7db93ac66
314-
start_block: 9466075
315350
- name: LendController
316351
- name: LendAMM
317352
- name: LendVault
318353

319354
# Sonic
320355
- id: 146
321-
start_block: 3231331
356+
start_block: 0
322357
contracts:
358+
- name: TricryptoFactoryNG
359+
address:
360+
- 0x635742dCC8313DCf8c904206037d962c042EAfBd
361+
- name: TwocryptoFactoryNG
362+
address:
363+
- 0x1A83348F9cCFD3Fe1A8C0adBa580Ac4e267Fe495
364+
- name: CryptoPool
323365
- name: StableswapFactoryNG
324366
address:
325367
- 0x7C2085419BE6a04f4ad88ea91bC9F5C6E6C463D8
326368
- name: StableswapPool
327369
- name: OneWayLendingFactory
328370
address:
329371
- 0x30D1859DaD5A52aE03B6e259d1b48c4b12933993
330-
start_block: 11208753
331372
- name: LendController
332373
- name: LendAMM
333374
- name: LendVault
334375

335376
# Avalanche
336377
- id: 43114
337-
start_block: 38813389
378+
start_block: 0
338379
contracts:
380+
- name: TricryptoFactoryNG
381+
address:
382+
- 0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a
383+
- name: TwocryptoFactoryNG
384+
address:
385+
- 0x98EE851a00abeE0d95D08cF4CA2BdCE32aeaAF7F
386+
- name: CryptoPool
339387
- name: StableswapFactoryNG
340388
address:
341389
- 0x1764ee18e8B3ccA4787249Ceb249356192594585

0 commit comments

Comments
 (0)