Skip to content

Commit

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

Please sign in to comment.