5: JupiterPerpsAlarm should be able to alarm on price 0
This commit is contained in:
@@ -20,6 +20,7 @@ public record PriceAlarmDefinition(
|
||||
Objects.requireNonNull(trigger, "trigger");
|
||||
Objects.requireNonNull(note, "note");
|
||||
|
||||
// TODO: https://git.r35157.com/r35157/com_r35157_nenjim-hubd-impl_ref/issues/5
|
||||
if (target.signum() <= 0) {
|
||||
throw new IllegalArgumentException("Target price must be positive");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user