From 0d718113e0772a26e787077089deffac43c3a97d Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 2 Sep 2024 13:16:50 +0700 Subject: [PATCH 1/2] Include sd utilized --- stader/api/node/status.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/stader/api/node/status.go b/stader/api/node/status.go index 7b48dff0..e0908553 100644 --- a/stader/api/node/status.go +++ b/stader/api/node/status.go @@ -199,8 +199,16 @@ func getStatus(c *cli.Context) (*api.NodeStatusResponse, error) { } response.DepositedSdCollateral = operatorSdCollateral + // get operator deposited sd collateral + utilizedSDBalance, err := sd_collateral.GetOperatorUtilizedSDBalance(sdc, nodeAccount.Address, nil) + if err != nil { + return nil, err + } + + totalSDPosition := utilizedSDBalance.Add(utilizedSDBalance, operatorSdCollateral) + // total registerable validators - totalSdWorthValidators, err := sd_collateral.GetMaxValidatorSpawnable(sdc, operatorSdCollateral, 1, nil) + totalSdWorthValidators, err := sd_collateral.GetMaxValidatorSpawnable(sdc, totalSDPosition, 1, nil) if err != nil { return nil, err } From c7181008d0d45f96d57002bf73ced97dad5ba7c7 Mon Sep 17 00:00:00 2001 From: batphonghan Date: Mon, 2 Sep 2024 13:19:13 +0700 Subject: [PATCH 2/2] Bump version --- shared/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/version.go b/shared/version.go index 9568069d..3c195e67 100644 --- a/shared/version.go +++ b/shared/version.go @@ -21,7 +21,7 @@ package shared const BinaryBucket string = "/stader-node-build/permissionless" const DockerAccount string = "staderlabs" -const StaderVersion string = "1.6.1" +const StaderVersion string = "1.6.2" const Logo string = ` _____ _ _ _ _ 𝅺