diff --git a/CHANGELOG.md b/CHANGELOG.md index f0a61da4f3b..53d92e64a3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -60,6 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#6788](https://github.com/osmosis-labs/osmosis/pull/6788) Improve error message when CL LP fails due to slippage bound hit. * [#6858](https://github.com/osmosis-labs/osmosis/pull/6858) Merge mempool improvements from v20 +* [#6861](https://github.com/osmosis-labs/osmosis/pull/6861) Protorev address added to reduced taker fee whitelist ### API Breaks diff --git a/app/upgrades/v21/upgrades.go b/app/upgrades/v21/upgrades.go index 2f6c02608b2..4fe40e795ab 100644 --- a/app/upgrades/v21/upgrades.go +++ b/app/upgrades/v21/upgrades.go @@ -167,6 +167,12 @@ func CreateUpgradeHandler( // Set CL param: keepers.ConcentratedLiquidityKeeper.SetParam(ctx, concentratedliquiditytypes.KeyHookGasLimit, concentratedliquiditytypes.DefaultContractHookGasLimit) + // Add protorev to the taker fee exclusion list: + protorevModuleAccount := keepers.AccountKeeper.GetModuleAccount(ctx, protorevtypes.ModuleName) + poolManagerParams := keepers.PoolManagerKeeper.GetParams(ctx) + poolManagerParams.TakerFeeParams.ReducedFeeWhitelist = append(poolManagerParams.TakerFeeParams.ReducedFeeWhitelist, protorevModuleAccount.GetAddress().String()) + keepers.PoolManagerKeeper.SetParams(ctx, poolManagerParams) + // Since we are now tracking all protocol rev, we set the accounting height to the current block height for each module // that generates protocol rev. keepers.PoolManagerKeeper.SetTakerFeeTrackerStartHeight(ctx, ctx.BlockHeight())