Skip to content

Commit a90de4b

Browse files
Add note about adding subscriptions on only admin method and surpassing the limit
1 parent ede8fa8 commit a90de4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contracts/src/core/AggregationModePaymentService.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
193193
* @notice Adds an array of addresses to the payment map and emits the Payment event.
194194
* @param addressesToAdd the addresses to be subscribed
195195
* @param expirationTimestamp the expiration timestamp (UTC seconds) for that subscriptions
196+
* Note: this method adds the subscriptions without checking if the final amount of subscriptions surpasses
197+
* the monthlySubscriptionLimit
196198
*/
197199
function addSubscriptions(address[] memory addressesToAdd, uint256 expirationTimestamp) public onlyRole(ADMIN_ROLE) {
198200
for (uint256 i=0; i < addressesToAdd.length; ++i) {

0 commit comments

Comments
 (0)