Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add ErrInvalidOraclePrice to oracle errors list
  • Loading branch information
toteki committed Feb 15, 2023
commit 4b02569c30481764e803caad20b397c933f8d008
6 changes: 5 additions & 1 deletion x/leverage/keeper/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ func nonOracleError(err error) bool {
return false
}
// check typed errors
if errors.IsOf(err, leveragetypes.ErrNoHistoricMedians, oracletypes.ErrUnknownDenom) {
if errors.IsOf(err,
leveragetypes.ErrInvalidOraclePrice,
leveragetypes.ErrNoHistoricMedians,
oracletypes.ErrUnknownDenom,
) {
return false
}
// this error needs to be checked by string comparison
Expand Down