Skip to content

Commit

Permalink
get the token price if token is blacklisted also (#2615)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsk967 authored Oct 30, 2024
1 parent f3d0565 commit 38fc85f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions x/leverage/keeper/oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ func (k Keeper) TokenPrice(ctx sdk.Context, baseDenom string, mode types.PriceMo
if err != nil {
return sdk.ZeroDec(), 0, err
}
if t.Blacklist {
return sdk.ZeroDec(), t.Exponent, types.ErrBlacklisted
}

// if a token is exempt from historic pricing, all price modes ignore historic prices
// and use spot prices instead, sometimes also allowing expired prices.
Expand Down

0 comments on commit 38fc85f

Please sign in to comment.