Skip to content

Commit

Permalink
fix code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
puneet2019 committed Nov 21, 2023
1 parent 66dfa3c commit edcb6d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x/liquidstakeibc/keeper/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions x/liquidstakeibc/keeper/ica_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion x/liquidstakeibc/keeper/rebalance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit edcb6d6

Please sign in to comment.