From 11c68d04b5950000c5428b209a3cc78cc7371ab4 Mon Sep 17 00:00:00 2001 From: blockgroot <170620375+blockgroot@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:23:41 +0000 Subject: [PATCH] chore: update equality check to more broader --- contracts/StaderOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/StaderOracle.sol b/contracts/StaderOracle.sol index b90cd898..1342e2a0 100644 --- a/contracts/StaderOracle.sol +++ b/contracts/StaderOracle.sol @@ -119,7 +119,7 @@ contract StaderOracle is IStaderOracle, AccessControlUpgradeable, PausableUpgrad if (block.number < lastTrustedNodeCountChangeBlock + trustedNodeChangeCoolingPeriod) { revert CooldownNotComplete(); } - if (trustedNodesCount == MIN_TRUSTED_NODES) { + if (trustedNodesCount <= MIN_TRUSTED_NODES) { revert InsufficientTrustedNodes(); } lastTrustedNodeCountChangeBlock = block.number;