Skip to content

Commit

Permalink
fix(poolincentives): band-aid state export fix for cwpool gauges (bac…
Browse files Browse the repository at this point in the history
…kport #6476) (#6479)

Co-authored-by: roman <roman@osmosis.team>
  • Loading branch information
mergify[bot] and p0mvn authored Sep 22, 2023
1 parent 1675b12 commit 5978736
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased

### Misc Improvements

* [#6476](https://github.com/osmosis-labs/osmosis/pull/6476) band-aid state export fix for cwpool gauges

## v19.1.0

Expand Down
9 changes: 9 additions & 0 deletions x/pool-incentives/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState {
if err != nil {
panic(err)
}

if pool.GetType() == poolmanagertypes.CosmWasm {
// TODO: remove this post-v19. In v19 we did not create a hook for cw pool gauges.
// Fix tracked in:
// https://github.com/osmosis-labs/osmosis/issues/6122
ctx.Logger().Info("Skipping pool ID", "poolId", poolId, "reason", "cosmwasm pool")
continue
}

isCLPool := pool.GetType() == poolmanagertypes.Concentrated
if isCLPool {
incParams := k.incentivesKeeper.GetEpochInfo(ctx)
Expand Down

0 comments on commit 5978736

Please sign in to comment.