diff --git a/x/liquidstakeibc/keeper/ibc.go b/x/liquidstakeibc/keeper/ibc.go index d1c0cf981..8d1f930f1 100644 --- a/x/liquidstakeibc/keeper/ibc.go +++ b/x/liquidstakeibc/keeper/ibc.go @@ -435,10 +435,10 @@ func (k *Keeper) handleUnsuccessfulAck( parsedMsg.Amount.Denom, ) } - // remove LSM deposits for this sequence (if any) + // remove redelegation tx for this sequence (if any) tx, ok := k.GetRedelegationTx(ctx, hc.ChainId, k.GetTransactionSequenceID(channel, sequence)) if !ok { - k.Logger(ctx).Error("Unidentified ica tx acked") + k.Logger(ctx).Error("unidentified ica tx acked") return nil } tx.State = types.RedelegateTx_REDELEGATE_ACKED diff --git a/x/liquidstakeibc/keeper/ica_handlers.go b/x/liquidstakeibc/keeper/ica_handlers.go index db46e813d..0e7b1e8cc 100644 --- a/x/liquidstakeibc/keeper/ica_handlers.go +++ b/x/liquidstakeibc/keeper/ica_handlers.go @@ -390,10 +390,10 @@ func (k *Keeper) HandleMsgBeginRedelegate( parsedMsg.Amount.Denom, ) } - // remove LSM deposits for this sequence (if any) + // remove redebelgation tx for this sequence (if any) tx, ok := k.GetRedelegationTx(ctx, hc.ChainId, k.GetTransactionSequenceID(channel, sequence)) if !ok { - k.Logger(ctx).Error("Unidentified ica tx acked") + k.Logger(ctx).Error("unidentified ica tx acked") return nil } tx.State = types.RedelegateTx_REDELEGATE_ACKED diff --git a/x/liquidstakeibc/keeper/rebalance.go b/x/liquidstakeibc/keeper/rebalance.go index fbb078c67..4ad3d886a 100644 --- a/x/liquidstakeibc/keeper/rebalance.go +++ b/x/liquidstakeibc/keeper/rebalance.go @@ -54,7 +54,7 @@ func (k Keeper) Rebalance(ctx sdk.Context, epoch int64) []proto.Message { }) } - // postive diffs first, so descending + // negative diffs first, so descending idealDelegationList = k.SortDelegationListAsc(idealDelegationList) revIdealList := idealDelegationList // positive diffs first (descending)