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

[bridges][AHs] Include ExportMessage fees in XCM message from AH to BH #392

Open
acatangiu opened this issue Jul 18, 2024 · 2 comments
Open

Comments

@acatangiu
Copy link
Contributor

XCM execution on Bridge Hub for messages coming from Asset Hub is being paid from AHs sovereign account, requiring periodic top-up of said sovereign account.

We can improve that by including the execution fees in the message (teleport DOT alongside ExportMessage).

@vgeddes
Copy link
Contributor

vgeddes commented Jul 18, 2024

I think we will do something like this for the Ethereum->BridgeHub flow, mainly so that we don't have to manually rebalance the collected fees.

Specifically:

  1. On Ethereum, user pays ETH along with their message
  2. ETH is locked into SA for AH
  3. Fee is included in message
  4. When delivered to BridgeHub, an XCM is sent to AH to mint the WETH to an SA controlled by the bridge
  5. A mechanism will be added to BridgeHub to allow relayers to claim their WETH reward on AssetHub

Then relayers can use AssetHub DEX to convert the WETH back into DOT if they wish.

With this approach, along with the big refactor we discussed on Element, there won't be a need for this SA rebalancing.

@acatangiu
Copy link
Contributor Author

Yeah, that sounds good. And this works even for new bridge lanes dedicated to other parachains. Relayer rewards are always minted on AH and claimed through BH (by providing some beneficiary AH address to be credited or similar).

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