Skip to content

Commit

Permalink
Put back not enough excess SD collateral check
Browse files Browse the repository at this point in the history
  • Loading branch information
batphonghan committed Jan 11, 2024
1 parent 67fac08 commit f0dde6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stader-cli/node/withdraw-sd.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ func WithdrawSd(c *cli.Context) error {
if err != nil {
return err
}

if canWithdrawSdResponse.InsufficientWithdrawableSd {
fmt.Println("Insufficient withdrawable SD!")
return nil
}

if canWithdrawSdResponse.InsufficientSdCollateral {
fmt.Println("Not enough excess SD collateral to withdraw")
return nil
}

sdStatusResponse, err := staderClient.GetSDStatus(big.NewInt(0))
if err != nil {
return err
Expand Down

0 comments on commit f0dde6c

Please sign in to comment.