Skip to content

Commit

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

* Change where we apply errcheck

(cherry picked from commit 5fde47d)

Co-authored-by: Dev Ojha <[email protected]>
  • Loading branch information
mergify[bot] and ValarDragon authored Aug 26, 2023
1 parent f7cd5b2 commit a4abe3e
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 a4abe3e

Please sign in to comment.