Skip to content

Commit

Permalink
Merge branch 'release/v6.0.x' into robert/v602-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba authored Sep 20, 2023
2 parents 8a90fc8 + c88495c commit 7a63bd5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x/oracle/keeper/historic_avg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 7a63bd5

Please sign in to comment.