diff --git a/packages/indexer-common/src/indexer-management/allocations.ts b/packages/indexer-common/src/indexer-management/allocations.ts index 2d0872796..91ff55b17 100644 --- a/packages/indexer-common/src/indexer-management/allocations.ts +++ b/packages/indexer-common/src/indexer-management/allocations.ts @@ -999,10 +999,10 @@ export class AllocationManager { // Fetch the allocation on chain to inspect its amount const allocation = await this.network.networkMonitor.allocation(action.allocationID) - // Accrue rewards, except for null or zeroed POI + // Accrue rewards, except for zeroed POI const zeroHexString = utils.hexlify(Array(32).fill(0)) rewards = - !action.poi || action.poi === zeroHexString + action.poi === zeroHexString ? BigNumber.from(0) : await this.network.contracts.rewardsManager.getRewards(action.allocationID)