Skip to content

Commit

Permalink
nit(x/evmstaking): remove and mod comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubpark committed Dec 6, 2024
1 parent 5d31768 commit f438b36
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions client/x/evmstaking/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (k Keeper) ValidatorAddressCodec() addresscodec.Codec {
return k.validatorAddressCodec
}

//nolint:gocyclo // TODO
//nolint:gocyclo // a lot of switch cases, could be refactored
func (k Keeper) ProcessStakingEvents(ctx context.Context, height uint64, logs []*evmenginetypes.EVMEvent) error {
gwei, exp := big.NewInt(10), big.NewInt(9)
gwei.Exp(gwei, exp, nil)
Expand All @@ -123,11 +123,6 @@ func (k Keeper) ProcessStakingEvents(ctx context.Context, height uint64, logs []
return err
}

// TODO: handle when each event processing fails.

// Convert the amount from wei to gwei (Eth2 spec withdrawal is specified in gwei) by dividing by 10^9.
// TODO: consider rounding and decimal precision when dividing bigint.

switch ethlog.Topics[0] {
case types.UpdateValidatorCommission.ID:
ev, err := k.ipTokenStakingContract.ParseUpdateValidatorCommssion(ethlog)
Expand Down

0 comments on commit f438b36

Please sign in to comment.