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 added this to In progress in Common Good Parachains via automation Mar 1, 2022
@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.

Common Good Parachains automation moved this from In progress to Reviewer approved Mar 7, 2022
@gilescope gilescope merged commit 1f94506 into master Mar 8, 2022
Common Good Parachains automation moved this from Reviewer approved to Done Mar 8, 2022
@gilescope gilescope deleted the kckyeung/xcm-weight-to-fee-trader branch March 8, 2022 09:10
@zqhxuyuan zqhxuyuan mentioned this pull request Apr 2, 2022
12 tasks
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.
Development

Successfully merging this pull request may close these issues.

None yet

4 participants