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

[POC] Finalize bridge transactions mechanism #31

Open
thomas-nguy opened this issue Jul 26, 2023 · 1 comment
Open

[POC] Finalize bridge transactions mechanism #31

thomas-nguy opened this issue Jul 26, 2023 · 1 comment
Labels

Comments

@thomas-nguy
Copy link
Member

thomas-nguy commented Jul 26, 2023

The finalize method needs to called after a bridge transfer in order to effectively receive tokens on l1 or l2.

While this is supported by the SDK, this is not supported by the UI
We assume that on era mainnet, matter-labs team is subsidizing the bridge so that it is called without user interactions.

In our case, we can think about two options

  1. Ask user to trigger finalize themselves their transactions on the bridge UI. after the block has been relayed to l1 or l2
  2. Add an additional cost on the bridge transfer, and create a "process" that will finalize on the behalf of the user. We need to make sure that this process will get effectively paid for its work.
@thomas-nguy
Copy link
Member Author

It seems that matter-labs will open source soon their "Withdrawal finalizer - A service to automatically finalize L2>L1 withdrawals"

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

No branches or pull requests

1 participant