diff --git a/x/fbridge/keeper/keeper.go b/x/fbridge/keeper/keeper.go index 7d87a7e979..6bba8eca55 100644 --- a/x/fbridge/keeper/keeper.go +++ b/x/fbridge/keeper/keeper.go @@ -128,10 +128,12 @@ func (k Keeper) GetRoleMetadata(ctx sdk.Context) types.RoleMetadata { } func (k Keeper) GetBridgeStatus(ctx sdk.Context) types.BridgeStatus { - roleMeta := k.GetRoleMetadata(ctx) - bsMeta := k.GetBridgeStatusMetadata(ctx) - if types.CheckTrustLevelThreshold(roleMeta.Guardian, bsMeta.Inactive, k.GetParams(ctx).GuardianTrustLevel) { - return types.StatusInactive + if k.GetRoleMetadata(ctx).Guardian != 0 { + roleMeta := k.GetRoleMetadata(ctx) + bsMeta := k.GetBridgeStatusMetadata(ctx) + if types.CheckTrustLevelThreshold(roleMeta.Guardian, bsMeta.Inactive, k.GetParams(ctx).GuardianTrustLevel) { + return types.StatusInactive + } } return types.StatusActive