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

Allow Bob to withdraw L1 liquidity #65

Open
lalexgap opened this issue Dec 9, 2021 · 1 comment
Open

Allow Bob to withdraw L1 liquidity #65

lalexgap opened this issue Dec 9, 2021 · 1 comment

Comments

@lalexgap
Copy link
Contributor

lalexgap commented Dec 9, 2021

To allow Bob to satisfy L2 (https://www.notion.so/Desired-security-and-usability-properties-a07341b850274837ae48370e3e6b20e8?d=0884756d90e94183a876e574bf3d63ef#3924d381ae6f4ca68db1cee326366e5e) he needs a way to remove liquidity from L1.

@andrewgordstewart suggested Bob could just submit a ticket for himself. Does there need to be a special case for Bob so he doesn't have to lock funds up in escrow?

@lalexgap
Copy link
Contributor Author

lalexgap commented Dec 9, 2021

I think Bob could technically submit his own swap with the current protocol.

If bob wants to remove liquidity he:

  • Deposits funds on L2 and register a swap
  • Authorize a batch with his swap
  • Claim batch on L1
  • Reclaim the funds he locked in escrow on L2

This does mean that he has to lock up extra L2 funds to withdraw L1 funds. In practice we'd probably want to support a special case for Bob so he doesn't have to lock up L2 funds in escrow that he is just going to get back.

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

1 participant