diff --git a/subgraphs/saucerswap/v2/src/mappings/position-manager.ts b/subgraphs/saucerswap/v2/src/mappings/position-manager.ts index c202aeb..4e4990b 100644 --- a/subgraphs/saucerswap/v2/src/mappings/position-manager.ts +++ b/subgraphs/saucerswap/v2/src/mappings/position-manager.ts @@ -10,15 +10,14 @@ import { ADDRESS_ZERO, factoryContract, ZERO_BD, ZERO_BI } from '../utils/consta import { Address, BigInt, ethereum, log } from '@graphprotocol/graph-ts' import { convertTokenToDecimal, loadTransaction } from '../utils' +const excludedBlocks: BigInt[] = [ + BigInt.fromI32(56517027), + BigInt.fromI32(56520786) + // Add more block numbers as needed here +]; + export function isBlockNumberExcluded(blockNumber: BigInt): boolean { - // Initialize the list of excluded blocks each time the function is called - let excludedBlocks: BigInt[] = [ - BigInt.fromI32(56517027), - BigInt.fromI32(56520786) - // Add more block numbers as needed here - ]; - - return excludedBlocks.some(excludedBlock => excludedBlock.equals(blockNumber)); + return excludedBlocks.includes(blockNumber); } function getPosition(event: ethereum.Event, tokenId: BigInt): Position | null {