Skip to content

Commit 615e66e

Browse files
committed
patch fix
1 parent 4547c76 commit 615e66e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x/masterchef/keeper/abci.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ func (k Keeper) EndBlocker(ctx sdk.Context) error {
3838
err := k.ProcessLPRewardDistribution(cacheCtx)
3939
if err != nil {
4040
ctx.Logger().Error(fmt.Sprintf("Failed to process lp rewards distribution: %s", err.Error()))
41-
return err
4241
} else {
4342
write()
43+
// distribute external rewards
44+
k.ProcessExternalRewardsDistribution(ctx)
4445
}
45-
// distribute external rewards
46-
k.ProcessExternalRewardsDistribution(ctx)
4746

4847
return nil
4948
}

0 commit comments

Comments
 (0)