@@ -322,6 +322,13 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
322322 return tokensToCollect;
323323 }
324324
325+ /**
326+ * @notice Requires that the collection window parameters are valid.
327+ *
328+ * @param _endsAt The end time of the agreement
329+ * @param _minSecondsPerCollection The minimum seconds per collection
330+ * @param _maxSecondsPerCollection The maximum seconds per collection
331+ */
325332 function _requireValidCollectionWindowParams (
326333 uint64 _endsAt ,
327334 uint32 _minSecondsPerCollection ,
@@ -394,23 +401,29 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
394401 }
395402
396403 /**
397- * @notice See {IRecurringCollector.recoverRCASigner}
404+ * @notice See {recoverRCASigner}
405+ * @param _signedRCA The signed RCA to recover the signer from
406+ * @return The address of the signer
398407 */
399408 function _recoverRCASigner (SignedRCA memory _signedRCA ) private view returns (address ) {
400409 bytes32 messageHash = _hashRCA (_signedRCA.rca);
401410 return ECDSA.recover (messageHash, _signedRCA.signature);
402411 }
403412
404413 /**
405- * @notice See {IRecurringCollector.recoverRCAUSigner}
414+ * @notice See {recoverRCAUSigner}
415+ * @param _signedRCAU The signed RCAU to recover the signer from
416+ * @return The address of the signer
406417 */
407418 function _recoverRCAUSigner (SignedRCAU memory _signedRCAU ) private view returns (address ) {
408419 bytes32 messageHash = _hashRCAU (_signedRCAU.rcau);
409420 return ECDSA.recover (messageHash, _signedRCAU.signature);
410421 }
411422
412423 /**
413- * @notice See {IRecurringCollector.hashRCA}
424+ * @notice See {hashRCA}
425+ * @param _rca The RCA to hash
426+ * @return The EIP712 hash of the RCA
414427 */
415428 function _hashRCA (RecurringCollectionAgreement memory _rca ) private view returns (bytes32 ) {
416429 return
@@ -435,7 +448,9 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
435448 }
436449
437450 /**
438- * @notice See {IRecurringCollector.hashRCAU}
451+ * @notice See {hashRCAU}
452+ * @param _rcau The RCAU to hash
453+ * @return The EIP712 hash of the RCAU
439454 */
440455 function _hashRCAU (RecurringCollectionAgreementUpdate memory _rcau ) private view returns (bytes32 ) {
441456 return
@@ -472,6 +487,9 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
472487 /**
473488 * @notice Requires that the signer for the RCAU is authorized
474489 * by the payer.
490+ * @param _signedRCAU The signed RCAU to verify
491+ * @param _payer The address of the payer
492+ * @return The address of the authorized signer
475493 */
476494 function _requireAuthorizedRCAUSigner (
477495 SignedRCAU memory _signedRCAU ,
@@ -493,14 +511,19 @@ contract RecurringCollector is EIP712, GraphDirectory, Authorizable, IRecurringC
493511 }
494512
495513 /**
496- * @notice See {IRecurringCollector. getAgreement}
514+ * @notice See {getAgreement}
497515 * @param _agreementId The ID of the agreement to get
498516 * @return The agreement data
499517 */
500518 function _getAgreement (bytes16 _agreementId ) private view returns (AgreementData memory ) {
501519 return agreements[_agreementId];
502520 }
503521
522+ /**
523+ * @notice Gets the start time for the collection of an agreement.
524+ * @param _agreement The agreement data
525+ * @return The start time for the collection of the agreement
526+ */
504527 function _agreementCollectionStartAt (AgreementData memory _agreement ) private pure returns (uint256 ) {
505528 return _agreement.lastCollectionAt > 0 ? _agreement.lastCollectionAt : _agreement.acceptedAt;
506529 }
0 commit comments