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

[SPEC] Implement timed execution strategies #173

Open
drewstone opened this issue May 2, 2022 · 1 comment
Open

[SPEC] Implement timed execution strategies #173

drewstone opened this issue May 2, 2022 · 1 comment
Assignees
Labels
spec 🆕 Specification details for future implementation

Comments

@drewstone
Copy link
Contributor

Overview

Currently when the relayers hear of signed proposals from the external signing system they proceed to submit the respective transactions. This is something ALL of the relayers may likely attempt to do. While we have no coordination on submitting this tx, we should implement a system for designing strategies around submission that can behave differently in different settings.

One particular setting is whether we want to immediately send txes or not for a given chain. Ethereum is an expensive place to make txes, therefore it might be wise to consider updating the Ethereum SignatureBridge only once every few hours (or let another relayer pay the tx cost). If there are many deposits on all other sides of the bridge, we may not want to execute this update as an operator of the relayer. If there exists a signed proposal for an anchor update and a user is intent on bridging to Ethereum, they can eat the cost themselves by submitting it themselves (this should also be an eventual option in the dApp).

Spec details

We should spec out what this might look like and then implement it. This would likely amount to putting in some constraints to the transaction submission and the respective (chain, proposal type) combination at hand. For example (Ethereum, AnchorUpdate) might behave differently than (Polygon, AnchorUpdate), etc.

We can consider optimising this around the fixed USD cost of txes. For example by targetting an amortized $/hour cost for the relayer. The spec writer/implementer should take this into account and also present a design that is flexible and general enough to support different behaviours.

@dutterbutter dutterbutter added the spec 🆕 Specification details for future implementation label May 5, 2022
@dutterbutter dutterbutter moved this to Not Started 🕧 in Webb Universe May 5, 2022
@shekohex shekohex self-assigned this Mar 10, 2023
@shekohex shekohex moved this from Not Started 🕧 to Planning 🗺️ in Webb Universe Mar 10, 2023
@shekohex shekohex moved this from Planning 🗺️ to Not Started 🕧 in Webb Universe Apr 19, 2023
@dutterbutter dutterbutter moved this from Not Started 🕧 to Planning 🗺️ in Webb Universe Apr 26, 2023
@shekohex shekohex moved this from Planning 🗺️ to Not Started 🕧 in Webb Universe May 5, 2023
@shekohex
Copy link
Collaborator

This now is going to be addressed partially in the #359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec 🆕 Specification details for future implementation
Projects
Status: Not Started 🕧
Development

No branches or pull requests

3 participants