From c8dc8b70fdcc166bd8d3a33ed9e13b1606418060 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Tue, 16 Jan 2024 21:04:16 +0700 Subject: [PATCH] Update maxUtilizable --- stader-cli/node/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stader-cli/node/status.go b/stader-cli/node/status.go index 324f13c89..e3a4e7918 100644 --- a/stader-cli/node/status.go +++ b/stader-cli/node/status.go @@ -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 ` 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 }