Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Commit fef8d70

Browse files
authored
Merge pull request #1020 from persistenceOne/puneet/remove-rebalancing
refactor: stop rebalancing as it introduces redelegations
2 parents 43d9fec + 3f355a5 commit fef8d70

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
3939
### Refactoring
4040

4141
- replace sdk-lsm to use gaia/liquid ([#1017](https://github.com/persistenceOne/pstake-native/pull/1017))
42+
- stop rebalancing as it introduces redelegations ([#1020](https://github.com/persistenceOne/pstake-native/pull/1020))
4243

4344
## [v4.0.0]
4445

x/liquidstake/keeper/hooks.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@ func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, _ int6
3333
k.AutocompoundStakingRewards(ctx, liquidstake.GetWhitelistedValsMap(k.GetParams(ctx).WhitelistedValidators))
3434
}
3535

36-
if epochIdentifier == liquidstake.RebalanceEpoch {
37-
// return value of UpdateLiquidValidatorSet is useful only in testing
38-
_ = k.UpdateLiquidValidatorSet(ctx, true)
39-
}
36+
// This has been commented as introducing redelegations for rebalancing affects stkAsset unstake flow
37+
// https://github.com/cosmos/gaia/security/advisories/GHSA-r47q-464x-wx5x.
38+
// TODO think of better approach for rebalancing
39+
//if epochIdentifier == liquidstake.RebalanceEpoch {
40+
// // return value of UpdateLiquidValidatorSet is useful only in testing
41+
// _ = k.UpdateLiquidValidatorSet(ctx, true)
42+
//}
4043
}
4144

4245
return nil

0 commit comments

Comments
 (0)