From 737fec85498db679d4f278a2b5586e22143fb5e9 Mon Sep 17 00:00:00 2001 From: SpekalsG3 Date: Thu, 7 Nov 2024 20:28:56 +0300 Subject: [PATCH] fix(oracle): fix UpdateExchangeRates return type --- x/oracle/keeper/update_exchange_rates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/oracle/keeper/update_exchange_rates.go b/x/oracle/keeper/update_exchange_rates.go index 5647321d..6196dcc4 100644 --- a/x/oracle/keeper/update_exchange_rates.go +++ b/x/oracle/keeper/update_exchange_rates.go @@ -14,7 +14,7 @@ func (k Keeper) UpdateExchangeRates(ctx sdk.Context) types.ValidatorPerformances validatorPerformances := k.newValidatorPerformances(ctx) pairs, err := k.GetWhitelistedPairs(ctx) if err != nil { - return err + panic(err) } whitelistedPairs := set.New[asset.Pair](pairs...)