diff --git a/app/modules.go b/app/modules.go index 5de2ff635e9..0d99830644d 100644 --- a/app/modules.go +++ b/app/modules.go @@ -184,13 +184,8 @@ func orderBeginBlockers() []string { func OrderEndBlockers(allModuleNames []string) []string { ord := partialord.NewPartialOrdering(allModuleNames) - // Epochs must run after all other end blocks - ord.LastElements(epochstypes.ModuleName) - // txfees auto-swap code should occur before any potential gamm end block code. - ord.Before(txfeestypes.ModuleName, gammtypes.ModuleName) - // only remaining modules that aren;t no-ops are: crisis & govtypes + // only Osmosis modules with endblock code are: crisis, govtypes, staking // we don't care about the relative ordering between them. - return ord.TotalOrdering() } diff --git a/x/superfluid/abci.go b/x/superfluid/abci.go index c58f7857d9d..af8f538df7a 100644 --- a/x/superfluid/abci.go +++ b/x/superfluid/abci.go @@ -1,8 +1,6 @@ package superfluid import ( - abci "github.com/tendermint/tendermint/abci/types" - "github.com/osmosis-labs/osmosis/v10/x/superfluid/keeper" "github.com/osmosis-labs/osmosis/v10/x/superfluid/types" @@ -19,8 +17,3 @@ func BeginBlocker(ctx sdk.Context, k keeper.Keeper, ek types.EpochKeeper) { k.AfterEpochStartBeginBlock(ctx) } } - -// Called every block to automatically unlock matured locks. -func EndBlocker(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate { - return []abci.ValidatorUpdate{} -} diff --git a/x/superfluid/module.go b/x/superfluid/module.go index 4bd7c408941..fce32bc55dd 100644 --- a/x/superfluid/module.go +++ b/x/superfluid/module.go @@ -187,7 +187,6 @@ func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { // EndBlock executes all ABCI EndBlock logic respective to the capability module. It // returns no validator updates. func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate { - EndBlocker(ctx, am.keeper) return []abci.ValidatorUpdate{} }