Skip to content

Commit 1857e15

Browse files
f: natspec
1 parent b900097 commit 1857e15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/subgraph-service/contracts/libraries/IndexingAgreement.sol

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,13 @@ library IndexingAgreement {
492492
return collectionSeconds * (termsV1.tokensPerSecond + termsV1.tokensPerEntityPerSecond * _entities);
493493
}
494494

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+
**/
495502
function _isActive(AgreementWrapper memory wrapper) private view returns (bool) {
496503
return
497504
wrapper.collectorAgreement.dataService == address(this) &&

0 commit comments

Comments
 (0)