Skip to content

Commit

Permalink
fix checking trustLevel condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed May 2, 2024
1 parent 90d7aca commit 38d0969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/fbridge/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&

Check failure on line 23 in x/fbridge/types/params.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA4003: every value of type uint64 is >= 0 (staticcheck)
current <= total {
return true
}
Expand Down

0 comments on commit 38d0969

Please sign in to comment.