Skip to content

Commit

Permalink
chore: natspec with tokenReceivers
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Apr 26, 2024
1 parent dfcb2b0 commit 23a4412
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/contracts/core/PaymentCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ contract PaymentCoordinator is
* @notice Claim payments against a given root (read from distributionRoots[claim.rootIndex]).
* Earnings are cumulative so earners don't have to claim against all distribution roots they have earnings for,
* they can simply claim against the latest root and the contract will calculate the difference between
* their cumulativeEarnings and cumulativeClaimed. This difference is then transferred to claimerFor[claim.earner]
* their cumulativeEarnings and cumulativeClaimed. This difference is then transferred to corresponding address in claim.tokenReceivers
* @param claim The PaymentMerkleClaim to be processed.
* Contains the root index, earner, payment leaves, and required proofs
* @dev only callable by the valid claimer, that is
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/core/PaymentCoordinatorStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abstract contract PaymentCoordinatorStorage is IPaymentCoordinator {
/// @notice the commission for all operators across all avss
uint16 public globalOperatorCommissionBips;

/// @notice Mapping: earner => the address of the entity to which new payments are directed on behalf of the earner
/// @notice Mapping: earner => the address of the entity who can call `processClaim` on behalf of the earner
mapping(address => address) public claimerFor;

/// @notice Mapping: earner => token => total amount claimed
Expand Down
6 changes: 3 additions & 3 deletions src/contracts/interfaces/IPaymentCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ interface IPaymentCoordinator {
/// @notice Delay in timestamp (seconds) before a posted root can be claimed against
function activationDelay() external view returns (uint32);

/// @notice Mapping: earner => the address of the entity to which new payments are directed on behalf of the earner
/// @notice Mapping: earner => the address of the entity who can call `processClaim` on behalf of the earner
function claimerFor(address earner) external view returns (address);

/// @notice Mapping: claimer => token => total amount claimed
Expand Down Expand Up @@ -253,7 +253,7 @@ interface IPaymentCoordinator {
* @notice Claim payments against a given root (read from distributionRoots[claim.rootIndex]).
* Earnings are cumulative so earners don't have to claim against all distribution roots they have earnings for,
* they can simply claim against the latest root and the contract will calculate the difference between
* their cumulativeEarnings and cumulativeClaimed. This difference is then transferred to claimerFor[claim.earner]
* their cumulativeEarnings and cumulativeClaimed. This difference is then transferred to corresponding address in claim.tokenReceivers
* @param claim The PaymentMerkleClaim to be processed.
* Contains the root index, earner, payment leaves, and required proofs
* @dev only callable by the valid claimer, that is
Expand All @@ -271,7 +271,7 @@ interface IPaymentCoordinator {
function submitRoot(bytes32 root, uint32 paymentCalculationEndTimestamp) external;

/**
* @notice Sets the address of the entity that can claim payments on behalf of the earner (msg.sender)
* @notice Sets the address of the entity that can call `processClaim` on behalf of the earner (msg.sender)
* @param claimer The address of the entity that can claim payments on behalf of the earner
* @dev Only callable by the `earner`
*/
Expand Down

0 comments on commit 23a4412

Please sign in to comment.