diff --git a/CHANGELOG.md b/CHANGELOG.md index ce836d57bac..f48ed58d8b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/x/pool-incentives/keeper/genesis.go b/x/pool-incentives/keeper/genesis.go index 4afc3dc7502..ed56ed2e15a 100644 --- a/x/pool-incentives/keeper/genesis.go +++ b/x/pool-incentives/keeper/genesis.go @@ -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)