-
Notifications
You must be signed in to change notification settings - Fork 21
feat!: XCM Weight Trader #443
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
Conversation
|
Crate versions that have been updated:
Runtime version has been increased. |
Todos / Open issues
|
…o apopiak/weight-trader
…o apopiak/weight-trader
It will use regular |
…o apopiak/weight-trader
Codecov Report
@@ Coverage Diff @@
## master #443 +/- ##
=======================================
Coverage 83.44% 83.44%
=======================================
Files 24 24
Lines 2935 2935
=======================================
Hits 2449 2449
Misses 486 486 Continue to review full report at Codecov.
|
|
Task linked: CU-2kpe1ch Implement Weight Trader |
|
requires #493 (and includes its changes) |
Description
The weight trader uses
pallet-transaction-multi-paymentto determine whether the payment asset has a local price (and can be used for fee payment).It then uses
WeightToFeein combination with that price to calculate the fee to charge for the weight.The trader tracks assets used for payment and uses them naively (i.e. one by one) to refund weight.
Related
closes #373
based on galacticcouncil/warehouse#48
Motivation and Context
Basilisk currently does not charge for XCM execution which makes it open for exploitation.
How Has This Been Tested?
Checklist: