Skip to content

Commit 18f94c1

Browse files
committed
skip odd pools that don't conform to current expectations
1 parent fe70de4 commit 18f94c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/templates/pools/pools.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,11 @@ export const createAeroProcessor = () => {
563563
token1Contract.decimals(),
564564
])
565565
} catch (err) {
566-
throw new Error(
566+
ctx.log.error(
567567
`Failed to fetch ERC20 metadata for Aerodrome pool ${data.pool} at block ${block.header.height}. ` +
568568
`token0=${data.token0}, token1=${data.token1}. Original error: ${err}`,
569569
)
570+
continue
570571
}
571572
const type = data.stable ? 'sAMM' : 'vAMM'
572573
const pool = new Pool({
@@ -597,10 +598,11 @@ export const createAeroProcessor = () => {
597598
token1Contract.decimals(),
598599
])
599600
} catch (err) {
600-
throw new Error(
601+
ctx.log.error(
601602
`Failed to fetch ERC20 metadata for Aerodrome CL pool ${data.pool} at block ${block.header.height}. ` +
602603
`token0=${data.token0}, token1=${data.token1}. Original error: ${err}`,
603604
)
605+
continue
604606
}
605607
const type = `CL${data.tickSpacing}`
606608
const pool = new Pool({

0 commit comments

Comments
 (0)