Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command to reclaim funds from Storage Market Actor #4478

Closed
hannahhoward opened this issue Oct 19, 2020 · 0 comments · Fixed by #4524
Closed

Command to reclaim funds from Storage Market Actor #4478

hannahhoward opened this issue Oct 19, 2020 · 0 comments · Fixed by #4524

Comments

@hannahhoward
Copy link
Contributor

hannahhoward commented Oct 19, 2020

As a client or a miner, I would like to be able to reclaim unlocked funds from the Storage Market Actor, so that I can use them for other purposes.

How:
create lotus wallet reclaim-market-funds
to me seems like it should operate in two modes:

  • CLI - takes as first argument amount to reclaim (fails if more than available), optional argument is wallet other than default (i.e. --wallet)
  • Interactive - Show available balance, present prompt asking for amount to reclaim (default to full available if nothing entered), show known wallets (w/ numbers), present prompt for number of wallet to use (use default if nothing entered)
    can be done in second ticket

Relevant APIs:
api.StateMarketBalance (not it returns Escrow + Locked & Available = Escrow - Locked)
market.WithdrawBalance actor method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant