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 = ` _____ _ _ _ _ 𝅺 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 }