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

Use WeightToFee when calculating cost of each weight unit in XCM trader #1055

Merged
merged 3 commits into from
Mar 8, 2022

Conversation

KiChjang
Copy link
Contributor

@KiChjang KiChjang commented Mar 1, 2022

This PR aims to solve #920.

We change the Trader's WeightToFee type parameter to each chain's WeightToFee struct that properly calculates and converts weight units into fees. Previously, it would do a 1-to-1 conversion between weight units and plancks.

Copy link
Contributor

@xlc xlc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests to ensure the numbers are sane?

@hbulgarini hbulgarini linked an issue Mar 1, 2022 that may be closed by this pull request
@hbulgarini hbulgarini added the T7-system_parachains This PR/Issue is related to System Parachains. label Mar 1, 2022
@hbulgarini hbulgarini added this to the statemint-v8.0.0 milestone Mar 2, 2022
Copy link
Contributor

@gilescope gilescope left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. We will deploy it and test it out on the test nets.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T7-system_parachains This PR/Issue is related to System Parachains.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants