Skip to content

Commit

Permalink
remove unused error message that causes us to fail to redelegate prop…
Browse files Browse the repository at this point in the history
…erly for amounts > int64 (#1735)
  • Loading branch information
Joe Bowman authored Oct 25, 2024
1 parent ba3e06e commit d6ffb10
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions x/interchainstaking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -796,11 +796,6 @@ func (k *Keeper) Rebalance(ctx sdk.Context, zone *types.Zone, epochNumber int64)
msgs := make([]sdk.Msg, 0)
for _, rebalance := range rebalances {
if rebalance.Amount.GTE(zone.DustThreshold) {
if !rebalance.Amount.IsInt64() {
k.Logger(ctx).Error("Rebalance amount out of bound Int64", "amount", rebalance.Amount.String())
// Ignore this
continue
}
msgs = append(msgs, &stakingtypes.MsgBeginRedelegate{DelegatorAddress: zone.DelegationAddress.Address, ValidatorSrcAddress: rebalance.Source, ValidatorDstAddress: rebalance.Target, Amount: sdk.NewCoin(zone.BaseDenom, rebalance.Amount)})
k.SetRedelegationRecord(ctx, types.RedelegationRecord{
ChainId: zone.ChainId,
Expand Down

0 comments on commit d6ffb10

Please sign in to comment.