From 2e29fb97bf4621bd7359311c2f635289b23e2be8 Mon Sep 17 00:00:00 2001 From: Sai Kumar Date: Tue, 29 Oct 2024 18:49:33 +0530 Subject: [PATCH] get the token price if token is blacklisted also --- x/leverage/keeper/oracle.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/x/leverage/keeper/oracle.go b/x/leverage/keeper/oracle.go index f35f494320..8122ee93eb 100644 --- a/x/leverage/keeper/oracle.go +++ b/x/leverage/keeper/oracle.go @@ -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.