Skip to content

Commit

Permalink
panic catch superfluid errors (#6175)
Browse files Browse the repository at this point in the history
* Panic catch superfluid errors

* Change where we apply errcheck
  • Loading branch information
ValarDragon authored Aug 26, 2023
1 parent 44a2ee9 commit 5fde47d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/superfluid/keeper/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ func (k Keeper) AfterEpochStartBeginBlock(ctx sdk.Context) {
k.MoveSuperfluidDelegationRewardToGauges(ctx)

ctx.Logger().Info("Distribute Superfluid gauges")
k.distributeSuperfluidGauges(ctx)
//nolint:errcheck
osmoutils.ApplyFuncIfNoError(ctx, func(cacheCtx sdk.Context) error {
k.distributeSuperfluidGauges(cacheCtx)
return nil
})

// Update all LP tokens multipliers for the upcoming epoch.
// This affects staking reward distribution until the next epochs rewards.
Expand Down

0 comments on commit 5fde47d

Please sign in to comment.