Skip to content

Commit

Permalink
fix: error handling was reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
Senna46 committed Feb 13, 2024
1 parent ddcb742 commit 41f26b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/liquidstaking/keeper/derivative.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (k Keeper) IsDerivativeDenom(ctx sdk.Context, denom string) bool {
}

_, err = k.stakingKeeper.GetValidator(ctx, valAddr)
return err != nil
return err == nil
}

// GetStakedTokensForDerivatives returns the total value of the provided derivatives
Expand Down

0 comments on commit 41f26b1

Please sign in to comment.