Skip to content

Commit

Permalink
ignore dup (#612)
Browse files Browse the repository at this point in the history
* ignore duplicate pools

* Update src/indexer/allo/v2/handleEvent.ts
  • Loading branch information
thelostone-mc authored Jul 22, 2024
1 parent 851bc3b commit dfd1d27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type CoingeckoSupportedChainId =
| 42
| 42220;

const CHAIN_DATA_VERSION = "91";
const CHAIN_DATA_VERSION = "92";

export type Token = {
code: string;
Expand Down
6 changes: 6 additions & 0 deletions src/indexer/allo/v2/handleEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ export async function handleEvent(
const parsedMetadata = RoundMetadataSchema.safeParse(roundMetadata);

const poolId = event.params.poolId;

if (["46", "47", "48"].includes(poolId.toString())) {
console.log("Skipping pool", poolId.toString());
return [];
}

const { managerRole, adminRole } = generateRoundRoles(poolId);
const strategyAddress = event.params.strategy;
const strategyId = await readContract({
Expand Down

0 comments on commit dfd1d27

Please sign in to comment.