From c88495ce3ed93c616ba8ae720d26568295f49186 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Wed, 20 Sep 2023 17:33:50 +0200 Subject: [PATCH] fix(oracle): avg params (#2257) --- x/oracle/keeper/historic_avg.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/x/oracle/keeper/historic_avg.go b/x/oracle/keeper/historic_avg.go index 66c67da849..8e354e0b4a 100644 --- a/x/oracle/keeper/historic_avg.go +++ b/x/oracle/keeper/historic_avg.go @@ -154,7 +154,9 @@ func (k Keeper) SetHistoricAvgCounterParams(ctx sdk.Context, acp types.AvgCounte // GetHistoricAvgCounterParams gets the avg period and avg shift time duration from store func (k Keeper) GetHistoricAvgCounterParams(ctx sdk.Context) types.AvgCounterParams { - kvs := ctx.KVStore(k.storeKey) - return *store.GetValue[*types.AvgCounterParams](kvs, types.KeyHistoricAvgCounterParams, - "historic avg counter params") + return types.DefaultAvgCounterParams() + // TODO: investigate why we don't have record! + // kvs := ctx.KVStore(k.storeKey) + // return *store.GetValue[*types.AvgCounterParams](kvs, types.KeyHistoricAvgCounterParams, + // "historic avg counter params") }