diff --git a/CHANGELOG.md b/CHANGELOG.md index 24a1670876f..31ef631cd5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#8765, 8768](https://github.com/osmosis-labs/osmosis/pull/8765) fix concurrency issue in go test(x/lockup) * [#8563](https://github.com/osmosis-labs/osmosis/pull/8755) [x/concentratedliquidity]: Fix Incorrect Event Emission * [#8765](https://github.com/osmosis-labs/osmosis/pull/8765) fix concurrency issue in go test(x/lockup) +* [#8791](https://github.com/osmosis-labs/osmosis/pull/8791) fix: superfluid log for error that should be ignored ### State Machine Breaking diff --git a/x/superfluid/keeper/epoch.go b/x/superfluid/keeper/epoch.go index 5a887176bf6..ad7c662196f 100644 --- a/x/superfluid/keeper/epoch.go +++ b/x/superfluid/keeper/epoch.go @@ -7,6 +7,7 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types" + stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/osmosis-labs/osmosis/osmoutils" cl "github.com/osmosis-labs/osmosis/v26/x/concentrated-liquidity" @@ -80,6 +81,11 @@ func (k Keeper) MoveSuperfluidDelegationRewardToGauges(ctx sdk.Context, accs []t ctx.Logger().Debug("no delegations for this (pool, validator) pair, skipping...") // TODO: Remove this account from IntermediaryAccounts that we iterate over return nil + } else if errors.Is(err, stakingtypes.ErrNoDelegation) { + // NOTE: in v0.50.x the function changed to return a different error + ctx.Logger().Debug("no delegations for this (pool, validator) pair, skipping...") + // TODO: Remove this account from IntermediaryAccounts that we iterate over + return nil } else if err != nil { return err }