diff --git a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts index 8fad58f4b..e2d59fdc0 100644 --- a/packages/indexer-common/src/indexer-management/resolvers/allocations.ts +++ b/packages/indexer-common/src/indexer-management/resolvers/allocations.ts @@ -398,7 +398,15 @@ export default { const [currentEpoch, disputeEpochs, maxAllocationEpochs, epochLength] = await Promise.all([ networkMonitor.networkCurrentEpoch(), - contracts.staking.channelDisputeEpochs(), + contracts.staking.channelDisputeEpochs().catch((error) => { + logger.warn( + 'Failed to fetch channel dispute epochs. Ignoring claimable allocations', + { error, protocolNetwork: network.specification.networkIdentifier }, + ) + // Remove this call to channelDisputeEpochs once Exponential Rebates are deployed to + // all networks. Using a default value of zero on failure for now. + return 0 + }), contracts.staking.maxAllocationEpochs(), contracts.epochManager.epochLength(), ])