From 1dc078b251a7db469e71c78bf7130eb3d1cc19a1 Mon Sep 17 00:00:00 2001 From: Joe Bowman Date: Fri, 20 Sep 2024 10:35:25 +0100 Subject: [PATCH] remove unused error message that causes us to fail to redelegate properly for amounts > int64 --- 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,