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

Research: XcmFeesToAccount fee manager - mitigate limitations affecting the bridges #2554

Closed
serban300 opened this issue Sep 12, 2023 · 4 comments
Assignees

Comments

@serban300
Copy link
Collaborator

Related to XcmFeesToAccount fee manager PR: paritytech/polkadot-sdk#1234

See this comment: paritytech/polkadot-sdk#1234 (comment)

Specifically:

For example, If our bridge (or any other one) is misconfigured, it could potentially drain TreasuryAccount empty, and potentially break other bridges who are also holding funds in that account.

@serban300 serban300 self-assigned this Sep 12, 2023
@serban300 serban300 changed the title Researching: XcmFeesToAccount fee manager - mitigate limitations affecting the bridges Research: XcmFeesToAccount fee manager - mitigate limitations affecting the bridges Sep 12, 2023
@serban300
Copy link
Collaborator Author

XCM related issue: paritytech/polkadot-sdk#1549

@serban300
Copy link
Collaborator Author

Things that we want to cover here:

  1. the possibility to set the target account where the XCM delivery fee is deposited based on the XCM message destination
  1. the possibility to set the XCM delivery fee value based on XCM message destination

I'm looking again over our entire workflow trying to research these points.

@serban300
Copy link
Collaborator Author

serban300 commented Sep 29, 2023

I will write here what I find and update this comment:

  1. the possibility to set the target account where the XCM delivery fee is deposited based on the XCM message destination

Left a comment with a possible implementation idea (on how to provide the destination to the FeeManager) on the XCM-related issue: paritytech/polkadot-sdk#1549 (comment)

  1. the possibility to set the XCM delivery fee value based on XCM message destination

For this point we can already set different delivery fees over the bridge based on destination, as mentioned above, and from what I understand, they are actually dynamic, computed according to the logic in the xcm-bridge-hub-router pallet. The logic is similar to the one in paritytech/polkadot-sdk#1234 , but we also take into consideration the bridge congestion, not only the XCMP queue congestion. After paritytech/polkadot-sdk#1234 is merged, we should probably keep only the bridge congestion logic, otherwise we'll tax twice for XCMP congestion.

So I think here, in terms of fees, what we have is enough. The problem is still the one at point 1. The fees get deposited in the same account.

@serban300
Copy link
Collaborator Author

Resolved in Resolved in by paritytech/polkadot-sdk#2021

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