Skip to content

Commit

Permalink
increment rebalance period
Browse files Browse the repository at this point in the history
  • Loading branch information
shellvish committed Nov 26, 2024
1 parent 4435031 commit 70c1e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/stakeibc/keeper/rebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (k Keeper) RebalanceAllHostZones(ctx sdk.Context) {
}

for _, hostZone := range k.GetAllActiveHostZone(ctx) {
if dayEpoch.EpochNumber%hostZone.UnbondingPeriod != 0 {
if dayEpoch.EpochNumber%(hostZone.UnbondingPeriod+1) != 0 {
k.Logger(ctx).Info(utils.LogWithHostZone(hostZone.ChainId,
"Host does not rebalance this epoch (Unbonding Period: %d, Epoch: %d)", hostZone.UnbondingPeriod, dayEpoch.EpochNumber))
continue
Expand Down

0 comments on commit 70c1e57

Please sign in to comment.