Skip to content

Commit

Permalink
Update maxUtilizable
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Jan 16, 2024
1 parent 7dd973e commit c8dc8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stader-cli/node/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func getNodeStatus(c *cli.Context) error {
fmt.Printf("Note: For repayment of your utilized SD, please use the `stader-cli node repay-sd <amount to repay>` command.\n\n")
}

maxUtilizable := new(big.Int).Sub(sdStatus.SdMaxUtilizableAmount, sdStatus.SdUtilizerLatestBalance)
maxUtilizable := new(big.Int).Sub(sdStatus.SdMaxUtilizableAmount, sdStatus.SdUtilizedBalance)
if maxUtilizable.Cmp(sdStatus.PoolAvailableSDBalance) > 0 {
maxUtilizable = sdStatus.PoolAvailableSDBalance
}
Expand Down

0 comments on commit c8dc8b7

Please sign in to comment.