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

Market escrow balance not show #5343

Closed
kaptinlin opened this issue Jan 13, 2021 · 7 comments
Closed

Market escrow balance not show #5343

kaptinlin opened this issue Jan 13, 2021 · 7 comments

Comments

@kaptinlin
Copy link

Describe the bug
After transfer FIL to market escrow balance, it's not show correctly. And when publishing deals, it will report error below.

deal failed: (State=26) error calling node: publishing deal: GasEstimateMessageGas error: estimating gas used: message execution failed: exit 19, reason: failed to lock balance: failed to lock client funds: not enough balance to lock for addr xxxxxx: escrow balance 1659454160000000 < locked 1659121360000000 + required 552919640000000 (RetCode=19)
@kaptinlin
Copy link
Author

The balance can be found by using another lotus. See https://filecoinproject.slack.com/archives/C01AZP8BKRQ/p1610141333137100?thread_ts=1610121940.129800&cid=C01AZP8BKRQ

Import the wallet at another lotus, you can withdraw all balance.

@dirkmc
Copy link
Contributor

dirkmc commented Jan 13, 2021

The error message is saying that it can't publish the deal because the funds required to publish the deal are not available.

To publish the deal you need to have enough available funds for provider collateral. The provider collateral gets locked until the deal is complete.

In this case the funds required for provider collateral are 552919640000000
The amount in escrow is 1659454160000000
The amount of that which is locked (collateral for previous deals) is 1659121360000000

The available amount is escrow - locked
= 1659454160000000 - 1659121360000000
= 332800000000

The required amount for provider collateral is 552919640000000, which is greater than the available amount 332800000000. So the attempt to publish the deal fails.

Normally lotus protects you against this problem because it prevents you from withdrawing more than the amount required for existing deals, and increases funds whenever you need them for a new deal. However if you move your wallet to a new lotus instance, lotus loses track of the state and cannot protect you.

@dirkmc dirkmc closed this as completed Jan 13, 2021
@dirkmc
Copy link
Contributor

dirkmc commented Jan 13, 2021

Note that there are some improvements to the CLI coming in the next release, so the CLI will give a clearer indication of market balances, and we are also planning to make the documentation clearer:
filecoin-project/lotus-docs#202

@kaptinlin
Copy link
Author

kaptinlin commented Jan 14, 2021

We know that, the issue is the available amount didn't show correctly in the provider lotus.

We write a custom cli command similar to the new cli, and it can transfter the fil to market balances.

@dirkmc
Copy link
Contributor

dirkmc commented Jan 14, 2021

I'm not sure what you mean when you say "the available amount didn't show correctly". Could you give an example?

@kaptinlin
Copy link
Author

I didn't know how to explain it as i don't know why it's happening.

The market balance is not show on origin lotus. It's not on market available, and it's not locked. The FIL just disapper.

But follow the guild on
https://filecoinproject.slack.com/archives/C01AZP8BKRQ/p1610141333137100?thread_ts=1610121940.129800&cid=C01AZP8BKRQ

Import the wallet at another lotus, you can withdraw all balance.

The Fil show on another lotus, and we can withdraw them to worker balance.

@dirkmc
Copy link
Contributor

dirkmc commented Jan 15, 2021

The market balance is not show on origin lotus

What do you mean exactly? What is the output of lotus client info?

I'm wondering if you're running into this issue where the funds are reserved because some deals are stuck: #5257

We recently merged some improvements to the CLI like showing the amount of reserved funds: #5303

We're also actively working on making data transfers more reliable and giving the user more control over the state of the deal, eg making it easier to cancel deals (so that reserved funds will be released).

Thanks for your patience.

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

No branches or pull requests

2 participants