Skip to content

Commit

Permalink
fix copies
Browse files Browse the repository at this point in the history
  • Loading branch information
bharath-123 committed Jan 5, 2024
1 parent 00c96e9 commit 29667e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions stader-cli/node/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func getNodeStatus(c *cli.Context) error {

fmt.Printf("The Operator has utilized %s from the Utility Pool.\n\n", eth.DisplayAmountInUnits(sdStatus.SdUtilizedBalance, "sd"))

fmt.Printf("The Operator has a current Utilization Position of %s. (including the utilization fee)\n Note: For repayment of your utilized SD, please use the `stader-cli node repay-sd <amount to repay>` command.\n\n",
fmt.Printf("The Operator has a current Utilization Position of %s. (including the utilization fee)\nNote: For repayment of your utilized SD, please use the `stader-cli node repay-sd <amount to repay>` command.\n\n",
eth.DisplayAmountInUnits(sdStatus.SdUtilizerLatestBalance, "sd"))

maxUtilizable := new(big.Int).Sub(sdStatus.SdMaxUtilizableAmount, sdStatus.SdUtilizerLatestBalance)
Expand All @@ -199,7 +199,7 @@ func getNodeStatus(c *cli.Context) error {
}

fmt.Printf(
"The Operator can utilize upto %s more.\nNote: The Operator can utilize a maximum of 1 ETH worth SD per validator.\n\n",
"Each Operator can utilize upto %s more.\nNote: The Operator can utilize a maximum of 1 ETH worth SD per validator.\n\n",
eth.DisplayAmountInUnits(maxUtilizable, "sd"))

if sdStatus.SdUtilizedBalance.Cmp(big.NewInt(0)) == 0 {
Expand Down
13 changes: 8 additions & 5 deletions stader-cli/node/utilize-sd.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ func PromptChooseUtilityAmount(sdStatus *api.SdStatusResponse) (*big.Int, error)
minSd := eth.WeiToEth(minUtility)
maxSd := eth.WeiToEth(maxUtility)

msg := fmt.Sprintf(`Please enter the amount of SD you wish to utilize from the SD Utility Pool:
SD Utility Pool balance: %s
msg := fmt.Sprintf(`SD Utility Pool balance: %s
Minimum utilization amount: %s
Maximum utilization amount: %s`, eth.DisplayAmountInUnits(sdStatus.PoolAvailableSDBalance, "sd"), eth.DisplayAmountInUnits(minUtility, "sd"), eth.DisplayAmountInUnits(maxUtility, "sd"))
Maximum utilization amount: %s
Please enter the amount of SD you wish to utilize from the SD Utility Pool:`, eth.DisplayAmountInUnits(sdStatus.PoolAvailableSDBalance, "sd"), eth.DisplayAmountInUnits(minUtility, "sd"), eth.DisplayAmountInUnits(maxUtility, "sd"))

errMsg := fmt.Sprintf("Invalid input, please specify an amount within %f and %f SD range\n", minSd, maxSd)

Expand All @@ -155,9 +156,11 @@ func PromptChooseSelfBondAmount(sdStatus *api.SdStatusResponse) (*big.Int, error
minSd := eth.WeiToEth(amountToCollateralRemain)
maxSd := eth.WeiToEth(sdRewardEligibleRemain)

msg := fmt.Sprintf(`Please enter the amount of SD you wish to deposit as collateral.
msg := fmt.Sprintf(`
Minimum bond: %s
Maximum bond: %s`, eth.DisplayAmountInUnits(amountToCollateralRemain, "sd"), eth.DisplayAmountInUnits(sdRewardEligibleRemain, "sd"))
Maximum bond: %s
Please enter the amount of SD you wish to deposit as collateral.`, eth.DisplayAmountInUnits(amountToCollateralRemain, "sd"), eth.DisplayAmountInUnits(sdRewardEligibleRemain, "sd"))

errMsg := fmt.Sprintf("Invalid input, please specify an amount within %f and %f SD range\n", minSd, maxSd)

Expand Down

0 comments on commit 29667e9

Please sign in to comment.