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

Calling Trader.InitAccount with insufficient funds results in a pending open account which can't be closed #409

Open
cwispp opened this issue Nov 2, 2022 · 3 comments

Comments

@cwispp
Copy link

cwispp commented Nov 2, 2022

Calling Trader.InitAccount with insufficient funds results in a pending open account which can't be closed with Trader.CloseAccount. Adding more funds using Trader.DepositAccount also doesn't work.

@guggero
Copy link
Member

guggero commented Nov 3, 2022

Thanks for the report! Yeah, it looks like the check whether the wallet has enough balance comes too late, after the account was already reserved on the server and written to the database.
We want to improve the account funding anyway (switching over to using the PSBT APIs of lnd). Also related: #37. So we'll make sure to add that check earlier as well when doing the refactor.

@paboum
Copy link

paboum commented Mar 25, 2023

Having the same issue still after 4 months. Can't either run litd now or log in to UI. I'm revoking RPC access since this is a blocker, investing my liquidity on uniswap or whatever.

@guggero
Copy link
Member

guggero commented Mar 27, 2023

Yes, unfortunately we don't have a solution for this yet. You can close your account and get your funds out with chantools closepoolaccount though.

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

3 participants