5: JupiterPerpsAlarm should be able to alarm on price 0
This commit is contained in:
@@ -20,8 +20,8 @@ public record PriceAlarmDefinition(
|
||||
Objects.requireNonNull(trigger, "trigger");
|
||||
Objects.requireNonNull(note, "note");
|
||||
|
||||
if (target.signum() <= 0) {
|
||||
throw new IllegalArgumentException("Target price must be positive");
|
||||
if (target.signum() < 0) {
|
||||
throw new IllegalArgumentException("Target price cannot be negative (was: " + target.signum() + ")!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user