Skip to content

Commit 9556549

Browse files
matiasedgeandnodetmigone
authored andcommitted
fix: cleanup IPaymentCollector + TAPCollector docs
1 parent e1d173d commit 9556549

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/horizon/contracts/interfaces/IPaymentsCollector.sol

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ interface IPaymentsCollector {
3434
* @notice Initiate a payment collection through the payments protocol
3535
* @dev This function should require the caller to present some form of evidence of the payer's debt to
3636
* the receiver. The collector should validate this evidence and, if valid, collect the payment.
37-
* Requirements:
38-
* - The caller must be the data service the RAV was issued to
39-
* - The signer of the RAV must be authorized to sign for the payer
4037
*
4138
* Emits a {PaymentCollected} event
4239
*

packages/horizon/contracts/payments/collectors/TAPCollector.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ contract TAPCollector is EIP712, GraphDirectory, ITAPCollector {
124124
/**
125125
* @notice Initiate a payment collection through the payments protocol
126126
* See {IGraphPayments.collect}.
127-
* @dev Caller must be the data service the RAV was issued to.
128-
* @dev Service provider must have an active provision with the data service to collect payments
127+
* @dev Requirements:
128+
* - Caller must be the data service the RAV was issued to.
129+
* - Signer of the RAV must be authorized to sign for the payer.
130+
* - Service provider must have an active provision with the data service to collect payments.
129131
* @notice REVERT: This function may revert if ECDSA.recover fails, check ECDSA library for details.
130132
*/
131133
function collect(IGraphPayments.PaymentTypes paymentType, bytes memory data) external override returns (uint256) {

0 commit comments

Comments
 (0)