From 38d0969d2c942e8501f1fadf5a1c30f24246390f Mon Sep 17 00:00:00 2001 From: Jayden Lee <41176085+tkxkd0159@users.noreply.github.com> Date: Fri, 3 May 2024 00:43:27 +0900 Subject: [PATCH] fix checking trustLevel condition --- x/fbridge/types/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/fbridge/types/params.go b/x/fbridge/types/params.go index 45fdbdc7d2..fbcab0ae6f 100644 --- a/x/fbridge/types/params.go +++ b/x/fbridge/types/params.go @@ -20,7 +20,7 @@ func CheckTrustLevelThreshold(total, current uint64, trustLevel Fraction) bool { } if total*trustLevel.Numerator <= current*trustLevel.Denominator && - total != 0 && current != 0 && + total > 0 && current >= 0 && current <= total { return true }