Update withdraw command to use 'shares' parameter#98
Update withdraw command to use 'shares' parameter#98johna1203 wants to merge 1 commit intodrift-labs:masterfrom
Conversation
I was testing the drift-valts CLI and noticed that the documentation for manager-request-withdraw shows --amount, but shouldn't it be --shares instead? ``` yarn cli manager-request-withdraw --vault-address=<VAULT_ADDRESS> --amount=<SHARES> ``` Shouldn't the correct one be: ``` yarn cli manager-request-withdraw --vault-address=<VAULT_ADDRESS> --shares=<SHARES> ```
|
either works |
|
When I used --amount, it was throwing an error: I checked the number of shares I had using the I also noticed that the CLI code supports the --amount option: drift-vaults/ts/sdk/cli/cli.ts Lines 90 to 97 in c438494 Maybe the documentation could include examples for both --shares and --amount, or clarify the difference between them — since in my case, using --amount was failing. |
|
Ah good catch, yeah agree it's poorly documented, will improve soon. There's also a third option to use |
|
That's useful too — I didn’t know that option existed. With that option, you don’t even need to check how many shares are in the vault to make a withdrawal. |
I was testing the drift-valts CLI and noticed that the documentation for manager-request-withdraw shows --amount, but shouldn't it be --shares instead?
Shouldn't the correct one be: