5: JupiterPerpsAlarm should be able to alarm on price 0

This commit is contained in:
2026-06-19 12:04:18 +02:00
parent c45fd72b4b
commit 7d44edb186
@@ -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");
}