Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

[Fix] Hardcoded weight for initiate_teleport #1669

@ruseinov

Description

@ruseinov

Once the XCM v3 is out we need to replace that by proper logic.

Here's one example occurrence.

Most likely it will mean that we will fall back to MultiAssetFilter.weigh_multi_assets logic and would have to modify it to match other invariants of Wild. Currently there are only Definite and Wild, Wild only supports either All or AllOf, none of which help us with weight calculation, because we want to know exactly the amount of assets being sent to calculate the weight.

This also means we have to make sure that do_teleport_assets method and other methods that are using Wild(All) are revisited to include the actual amount of assets (max_assets, if you will) that were present at the beginning of the operation.

cc @KiChjang @gilescope @joepetrowski

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions