Skip to content

Commit

Permalink
feat(gov): use gov/v1 MinInitialDepositRatio and set it to 0.1 (#2301)
Browse files Browse the repository at this point in the history
* feat(gov): use gov/v1 MinInitialDepositRatio and set it to 0.1

* Changelog

* lint changelog
  • Loading branch information
robert-zaremba authored Oct 31, 2023
1 parent 8584cd9 commit eef5b43
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## Unreleased

### Improvements

- [2299](https://github.com/umee-network/umee/pull/2299) Upgrade Cosmos SDK to v0.47.
- [2301](https://github.com/umee-network/umee/pull/2301) use gov/v1 MinInitialDepositRatio and set it to 0.1.

## v6.1.0 - 2023-10-17

### Improvements
Expand Down
9 changes: 8 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,14 @@ func (app *UmeeApp) registerUpgrade6_2(upgradeInfo upgradetypes.Plan) {
params.AllowedClients = append(params.AllowedClients, ibcexported.Localhost)
app.IBCKeeper.ClientKeeper.SetParams(ctx, params)

return app.mm.RunMigrations(ctx, app.configurator, fromVM)
fromVM, err := app.mm.RunMigrations(ctx, app.configurator, fromVM)
if err != nil {
return fromVM, err
}
govParams := app.GovKeeper.GetParams(ctx)
govParams.MinInitialDepositRatio = sdk.NewDecWithPrec(1, 2).String()
err = app.GovKeeper.SetParams(ctx, govParams)
return fromVM, err
},
)

Expand Down

0 comments on commit eef5b43

Please sign in to comment.