From 2177473a839c4599646b3852e2eb090243ee1f77 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:30:27 +0100 Subject: fuzzer: allow +0 AP --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 639f7c2..2337388 100644 --- a/rules.js +++ b/rules.js @@ -207,8 +207,8 @@ function lower_gov_psl(amount) { } function raise_fln_ap(amount, reason) { - if (amount <= 0) - throw Error(`ASSERT: amount > 0, but was ${amount}`) + if (amount < 0) + throw Error(`ASSERT: amount >= 0, but was ${amount}`) if (reason) logp(`FLN AP +${amount} (${reason})`) else -- cgit v1.2.3