Skip to content

Commit 8144b97

Browse files
committed
doc: update comments
1 parent 3df9ea9 commit 8144b97

File tree

1 file changed

+3
-3
lines changed
  • target_chains/ethereum/contracts/contracts/pulse/scheduler

1 file changed

+3
-3
lines changed

target_chains/ethereum/contracts/contracts/pulse/scheduler/IScheduler.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)