From d6846e9c9bd3bea36d8a3989f3e025d558abfd9a Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Wed, 20 Sep 2023 17:24:37 +0200 Subject: [PATCH] fix(oracle): avg params --- 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") }