Skip to content

Commit 3ac2414

Browse files
increase the monthly subscription counter on the addSubscriptions method
1 parent 84d07af commit 3ac2414

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

contracts/src/core/AggregationModePaymentService.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,14 @@ contract AggregationModePaymentService is Initializable, OwnableUpgradeable, UUP
161161
* @param addressesToAdd the addresses to be subscribed
162162
* @param expirationTimestamp the expiration timestamp (UTC seconds) for that subscriptions
163163
*/
164-
function addArbitraryExpirationSubscriptions(address[] memory addressesToAdd, uint256 expirationTimestamp) public onlyOwner() {
164+
function addSubscriptions(address[] memory addressesToAdd, uint256 expirationTimestamp) public onlyOwner() {
165165
for (uint256 i=0; i < addressesToAdd.length; ++i) {
166166
address addressToAdd = addressesToAdd[i];
167167

168168
subscribedAddresses[addressToAdd] = expirationTimestamp;
169169

170+
++monthlySubscriptionsAmount;
171+
170172
emit UserPayment(addressToAdd, amountToPayInWei, block.timestamp, expirationTimestamp);
171173
}
172174
}

0 commit comments

Comments
 (0)