We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b900097 commit 1857e15Copy full SHA for 1857e15
packages/subgraph-service/contracts/libraries/IndexingAgreement.sol
@@ -492,6 +492,13 @@ library IndexingAgreement {
492
return collectionSeconds * (termsV1.tokensPerSecond + termsV1.tokensPerEntityPerSecond * _entities);
493
}
494
495
+ /**
496
+ * @notice Checks if the agreement is active
497
+ * Requirements:
498
+ * - The underlying collector agreement has been accepted
499
+ * - The underlying collector agreement's data service is this contract
500
+ * - The indexing agreement has been accepted and has a valid allocation ID
501
+ **/
502
function _isActive(AgreementWrapper memory wrapper) private view returns (bool) {
503
return
504
wrapper.collectorAgreement.dataService == address(this) &&
0 commit comments