File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
target_chains/ethereum/contracts/contracts/pulse/scheduler Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ interface IScheduler is SchedulerEvents {
1212
1313 /**
1414 * @notice Adds a new subscription
15+ * @dev Requires msg.value to be at least the minimum balance for the subscription (calculated by getMinimumBalance()).
1516 * @param subscriptionParams The parameters for the subscription
1617 * @return subscriptionId The ID of the newly created subscription
17- * @dev Requires msg.value to be at least the minimum balance for the subscription
1818 */
1919 function addSubscription (
2020 SchedulerState.SubscriptionParams calldata subscriptionParams
@@ -38,6 +38,8 @@ interface IScheduler is SchedulerEvents {
3838
3939 /**
4040 * @notice Updates an existing subscription
41+ * @dev You can activate or deactivate a subscription by setting isActive to true or false.
42+ * @dev Reactivating a subscription requires the subscription to hold at least the minimum balance (calculated by getMinimumBalance()).
4143 * @param subscriptionId The ID of the subscription to update
4244 * @param newSubscriptionParams The new parameters for the subscription
4345 */
@@ -46,8 +48,6 @@ interface IScheduler is SchedulerEvents {
4648 SchedulerState.SubscriptionParams calldata newSubscriptionParams
4749 ) external ;
4850
49- // Deactivation is now handled through updateSubscription by setting isActive to false
50-
5151 /**
5252 * @notice Updates price feeds for a subscription.
5353 * Verifies the updateData using the Pyth contract and validates that all feeds have the same timestamp.
You can’t perform that action at this time.
0 commit comments