Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-123 committed Jan 3, 2024
1 parent 95de273 commit 8d8e9fc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions stader-cli/node/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ import (
"github.com/urfave/cli"
)

const (
minEthBalanceForClaim = 100000000000000 // 0.0001 ETH
)

func getNodeStatus(c *cli.Context) error {

staderClient, err := stader.NewClientFromCtx(c)
Expand Down Expand Up @@ -118,7 +114,7 @@ func getNodeStatus(c *cli.Context) error {
fmt.Printf("2. Use the %sstader-cli node claim-rewards%s command to claim the EL rewards from the claim vault to your operator reward address\n\n", log.ColorGreen, log.ColorReset)
}

if status.OperatorRewardCollectorBalance.Cmp(big.NewInt(minEthBalanceForClaim)) > 0 {
if status.OperatorRewardCollectorBalance.Cmp(big.NewInt(0)) > 0 {
val, denom := eth.WeiToEthWithValCheck(status.OperatorRewardCollectorBalance)
if denom == "eth" {

Check failure on line 119 in stader-cli/node/status.go

View workflow job for this annotation

GitHub Actions / build

string `eth` has 4 occurrences, make it a constant (goconst)
fmt.Printf(
Expand Down

0 comments on commit 8d8e9fc

Please sign in to comment.