@@ -24,8 +24,8 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
2424 /// @notice The address where the payment funds will be sent.
2525 address public paymentFundsRecipient;
2626
27- /// @notice The limit of subscriptions for different addresses per month
28- uint256 public monthlySubscriptionLimit ;
27+ /// @notice The limit of subscriptions for different addresses
28+ uint256 public subscriptionLimit ;
2929
3030 /// @notice Number of subscriptions in the current month
3131 uint256 public monthlySubscriptionsAmount;
@@ -56,7 +56,7 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
5656 event AmountToPayUpdated (uint256 indexed newAmountToPay );
5757
5858 /// @notice Event emitted when the subscription limit is updated
59- /// @param newSubscriptionLimit the new monthly subscription limit.
59+ /// @param newSubscriptionLimit the new subscription limit.
6060 event SubscriptionLimitUpdated (uint256 indexed newSubscriptionLimit );
6161
6262 /// @notice Event emitted when the subscription amount is updated
@@ -78,7 +78,7 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
7878
7979 error InvalidDepositAmount (uint256 amountReceived , uint256 amountRequired );
8080
81- error SubscriptionLimitReached (uint256 monthlySubscriptionLimit );
81+ error SubscriptionLimitReached (uint256 subscriptionLimit );
8282
8383 error SubscriptionTimeExceedsLimit (uint256 newSubscriptionTime , uint256 timeLimit );
8484
@@ -115,7 +115,7 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
115115 paymentExpirationTimeSeconds = _paymentExpirationTimeSeconds;
116116 amountToPayInWei = _amountToPayInWei;
117117 paymentFundsRecipient = _paymentFundsRecipient;
118- monthlySubscriptionLimit = _subscriptionLimit;
118+ subscriptionLimit = _subscriptionLimit;
119119 maxSubscriptionTimeAhead = _maxSubscriptionTimeAhead;
120120 }
121121
@@ -161,10 +161,10 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
161161
162162 /**
163163 * @notice Sets the new subscription limit. Only callable by the owner
164- * @param newSubscriptionLimit The new monthly subscription limit.
164+ * @param newSubscriptionLimit The new subscription limit.
165165 */
166166 function setSubscriptionLimit (uint256 newSubscriptionLimit ) public onlyRole (OWNER_ROLE) {
167- monthlySubscriptionLimit = newSubscriptionLimit;
167+ subscriptionLimit = newSubscriptionLimit;
168168
169169 emit SubscriptionLimitUpdated (newSubscriptionLimit);
170170 }
@@ -194,7 +194,7 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
194194 * @param addressesToAdd the addresses to be subscribed
195195 * @param expirationTimestamp the expiration timestamp (UTC seconds) for that subscriptions
196196 * Note: this method adds the subscriptions without checking if the final amount of subscriptions surpasses
197- * the monthlySubscriptionLimit
197+ * the subscriptionLimit
198198 */
199199 function addSubscriptions (address [] memory addressesToAdd , uint256 expirationTimestamp ) public onlyRole (ADMIN_ROLE) {
200200 for (uint256 i= 0 ; i < addressesToAdd.length ; ++ i) {
@@ -218,8 +218,8 @@ contract AggregationModePaymentService is Initializable, UUPSUpgradeable, Access
218218 revert InvalidDepositAmount (amount, amountToPayInWei);
219219 }
220220
221- if (monthlySubscriptionsAmount >= monthlySubscriptionLimit ) {
222- revert SubscriptionLimitReached (monthlySubscriptionLimit );
221+ if (monthlySubscriptionsAmount >= subscriptionLimit ) {
222+ revert SubscriptionLimitReached (subscriptionLimit );
223223 }
224224
225225 if (subscribedAddresses[msg .sender ] < block .timestamp ) {
0 commit comments