Skip to content

Commit

Permalink
Update lib/payment-subscription/payment-multi-validator/utils.ak
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Petruska <[email protected]>
  • Loading branch information
HarunJr and mpetruska authored Sep 9, 2024
1 parent 733fe3f commit 2b68308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/payment-subscription/payment-multi-validator/utils.ak
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub fn validate_extension_datum(
new_datum.subscription_fee == service_datum.service_fee && new_datum.interval_length == service_datum.interval_length && new_datum.minimum_ada >= service_datum.minimum_ada

let sane_values =
new_datum.subscription_start >= 0 && new_datum.subscription_end > new_datum.subscription_start && new_datum.interval_length > 0 && new_datum.interval_amount > 0 && new_datum.num_intervals > 0 && new_datum.minimum_ada > 0
new_datum.subscription_start >= 0 && new_datum.subscription_end > new_datum.subscription_start && new_datum.interval_length > 0 && new_datum.interval_amount > 0 && new_datum.num_intervals > 0 && new_datum.minimum_ada >= 0

// Ensure that the subscription start is at least negative interval_length
let valid_start_time =
Expand Down

0 comments on commit 2b68308

Please sign in to comment.