Skip to content

Commit fb75497

Browse files
chore: reset cache on pool creation (backport #8415) (#8416)
* chore: reset cache on pool creation (#8415) * reset cache on pool creation * changelog (cherry picked from commit c69482a) # Conflicts: # CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Adam Tucker <adam@osmosis.team>
1 parent af7349d commit fb75497

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4646

4747
* [#8169](https://github.com/osmosis-labs/osmosis/pull/8169) Support non-pool assets in superfluid staking.
4848
* [#8169](https://github.com/osmosis-labs/osmosis/pull/8169) Support non-pool assets in superfluid staking
49+
* [#8169](https://github.com/osmosis-labs/osmosis/pull/8169) [#8250](https://github.com/osmosis-labs/osmosis/pull/8250) [#8276](https://github.com/osmosis-labs/osmosis/pull/8276) [#8320](https://github.com/osmosis-labs/osmosis/pull/8320) Support non-pool assets in superfluid staking
4950
* [#8274](https://github.com/osmosis-labs/osmosis/pull/8274) SDK v50 and Comet v0.38 upgrade
5051

5152
### State Compatible
5253

54+
## v25.1.2
55+
56+
* [#8415](https://github.com/osmosis-labs/osmosis/pull/8415) Reset cache on pool creation
57+
5358
## v25.1.1
5459

5560
* [#8394](https://github.com/osmosis-labs/osmosis/pull/8394) Lower timeout commit from 1s to 600ms

x/poolmanager/create_pool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func (k Keeper) getNextPoolIdAndIncrement(ctx sdk.Context) uint64 {
154154
func (k *Keeper) SetPoolRoute(ctx sdk.Context, poolId uint64, poolType types.PoolType) {
155155
store := ctx.KVStore(k.storeKey)
156156
osmoutils.MustSet(store, types.FormatModuleRouteKey(poolId), &types.ModuleRoute{PoolType: poolType})
157+
k.cachedPoolModules.Delete(poolId)
157158
}
158159

159160
type poolModuleCacheValue struct {

0 commit comments

Comments
 (0)