Skip to content

Commit

Permalink
Merge branch 'release/v6.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Sep 21, 2023
2 parents c20e5ab + 9e8e554 commit 7a5a789
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

## [v6.0.2](https://github.com/umee-network/umee/releases/tag/v6.0.2) - 2023-09-20

### BugFix

- [2257](https://github.com/umee-network/umee/pull/2257) fix(oracle): missing avg params.

## [v6.0.1](https://github.com/umee-network/umee/releases/tag/v6.0.1) - 2023-09-15

### Features
Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

Release Procedure is defined in the [CONTRIBUTING](CONTRIBUTING.md#release-procedure) document.

## v6.0.2

This fixes a crash shortly after the 6.0.1 upgrade. The crash occurred at height `8427849` but this binary works even if you switch to it immediately after the gov upgrade. Patch must be applied **as soon as possible**.

## v6.0.1

This is a bug fix release for the `leverage.MsgGovUpdateSpecialAssets` handler.
Expand Down
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 7a5a789

Please sign in to comment.