From d6ffb10434add007097901ef60e1e0fa0c92b5b7 Mon Sep 17 00:00:00 2001 From: Joe Bowman Date: Fri, 25 Oct 2024 09:48:07 +0100 Subject: [PATCH] remove unused error message that causes us to fail to redelegate properly for amounts > int64 (#1735) --- x/interchainstaking/keeper/keeper.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/x/interchainstaking/keeper/keeper.go b/x/interchainstaking/keeper/keeper.go index 4250c9551..1dc2e483c 100644 --- a/x/interchainstaking/keeper/keeper.go +++ b/x/interchainstaking/keeper/keeper.go @@ -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,