Skip to content

Commit

Permalink
Fixed comparison of MinNodeFee and MaxNodeFee
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspanf committed Sep 24, 2024
1 parent 6356d19 commit 13ca2b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocketpool-cli/commands/node/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func newDepositPrompts(c *cli.Context, rp *client.Client, soloConversionPubkey *
}
} else {
// Prompt for min node fee
if nodeFeeResponse.Data.MinNodeFee == nodeFeeResponse.Data.MaxNodeFee {
if nodeFeeResponse.Data.MinNodeFee.Cmp(nodeFeeResponse.Data.MaxNodeFee) == 0 {
fmt.Printf("Your minipool will use the current fixed commission rate of %.2f%%.\n", eth.WeiToEth(nodeFeeResponse.Data.MinNodeFee)*100)
minNodeFee = eth.WeiToEth(nodeFeeResponse.Data.MinNodeFee)
} else {
Expand Down

0 comments on commit 13ca2b7

Please sign in to comment.