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

lotus wallet market withdraw does not work #5257

Closed
kernelogic opened this issue Dec 26, 2020 · 4 comments · Fixed by #5293
Closed

lotus wallet market withdraw does not work #5257

kernelogic opened this issue Dec 26, 2020 · 4 comments · Fixed by #5293
Assignees
Labels
area/markets Area: Markets kind/bug Kind: Bug

Comments

@kernelogic
Copy link

I am trying to recover some funds from my market balance. I see there is some balance in there:

lotus state market balance f3sfopz3rgcq5x5eaps5himeybsy36sisrgl7i37wbfs5jyvib73vncg7znbjk2fgj6kwnbomv6fwclk464zva
Escrow: 20.669294826523632896 FIL
Locked: 7.434539598203632896 FIL

But when I withdraw, it says insufficient. I have tried all the way to withdraw 1FIL the error messages are the same.

lotus wallet market withdraw --from f3sfopz3rgcq5x5eaps5himeybsy36sisrgl7i37wbfs5jyvib73vncg7znbjk2fgj6kwnbomv6fwclk464zva
Submitting WithdrawBalance message for amount 13.23475522832 FIL for address f3sfopz3rgcq5x5eaps5himeybsy36sisrgl7i37wbfs5jyvib73vncg7znbjk2fgj6kwnbomv6fwclk464zva
ERROR: fund manager withdraw error: insufficient funds for withdrawal of 13234755228320000000
lotus wallet market withdraw --from f3sfopz3rgcq5x5eaps5himeybsy36sisrgl7i37wbfs5jyvib73vncg7znbjk2fgj6kwnbomv6fwclk464zva 1
Submitting WithdrawBalance message for amount 1 FIL for address f3sfopz3rgcq5x5eaps5himeybsy36sisrgl7i37wbfs5jyvib73vncg7znbjk2fgj6kwnbomv6fwclk464zva
ERROR: fund manager withdraw error: insufficient funds for withdrawal of 1000000000000000000
@dirkmc
Copy link
Contributor

dirkmc commented Jan 4, 2021

When lotus makes a deal, it starts by reserving funds that are needed for the deal:
client collateral + storage price per epoch * number of epochs

The funds are released when either

  • the deal is published
  • the deal fails

So if you have deals that are still in progress (eg still transferring data) it is not possible to withdraw the funds.

If you don't have any deals in progress and you are still seeing this error, it may be because your local state has got out of sync with the chain state.

@dirkmc dirkmc added area/markets Area: Markets kind/bug Kind: Bug labels Jan 5, 2021
@dirkmc
Copy link
Contributor

dirkmc commented Jan 5, 2021

We should change make the error message clearer - the error message should include the amount reserved and the amount available so it's clear to the user why the funds cannot be withdrawn,

@dirkmc
Copy link
Contributor

dirkmc commented Jan 5, 2021

Fixed by #5293

@dirkmc dirkmc added this to the 💹Storage Deal Success milestone Jan 5, 2021
@dirkmc dirkmc self-assigned this Jan 5, 2021
@kernelogic
Copy link
Author

Yes that's great. I notice if I import the private key to another clean lotus, I can withdraw all the balance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/markets Area: Markets kind/bug Kind: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants