Skip to content

Commit

Permalink
fix: superfluid log for error that should be ignored (#8791)
Browse files Browse the repository at this point in the history
* fix: superfluid log for error that should be ignored

* chore: changelog update
  • Loading branch information
PaddyMc authored Oct 30, 2024
1 parent 2e85d1e commit 650a25c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions x/superfluid/keeper/epoch.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 650a25c

Please sign in to comment.