Skip to content

Commit b6931c9

Browse files
fix: increase the monthly subscriptions counter on each receive
1 parent e600923 commit b6931c9

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AggregationModePaymentService.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ contract AggregationModePaymentService is Initializable, OwnableUpgradeable, UUP
199199
revert SubscriptionNotExpired(insertedExpiration, block.timestamp);
200200
}
201201

202+
++monthlySubscriptionsAmount;
203+
202204
emit UserPayment(msg.sender, amount, block.timestamp, block.timestamp + paymentExpirationTimeSeconds);
203205
}
204206

0 commit comments

Comments
 (0)