Skip to content

Commit d549db6

Browse files
committed
feat: use indexingPaymentsSubgraph for agreement queries
1 parent 69a96c6 commit d549db6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • packages/indexer-common/src/indexing-fees

packages/indexer-common/src/indexing-fees/dips.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,14 @@ export class DipsManager {
578578
const logger = this.logger.child({ function: 'collectAgreementPayments' })
579579
const indexerAddress = this.network.specification.indexerOptions.address
580580

581+
if (!this.network.indexingPaymentsSubgraph) {
582+
logger.warn(
583+
'Indexing payments subgraph not configured, skipping agreement collection',
584+
)
585+
return
586+
}
581587
const agreements = await fetchCollectableAgreements(
582-
this.network.networkSubgraph,
588+
this.network.indexingPaymentsSubgraph,
583589
indexerAddress,
584590
)
585591

0 commit comments

Comments
 (0)