Skip to content

Commit

Permalink
fix(oracle): avg params
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 20, 2023
1 parent bfd312a commit e95cfb5
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 e95cfb5

Please sign in to comment.