-
Notifications
You must be signed in to change notification settings - Fork 779
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
xcm: avoid subtracting delivery fees twice #7201
base: stable2409
Are you sure you want to change the base?
xcm: avoid subtracting delivery fees twice #7201
Conversation
/cmd prdoc --audience runtime_dev --bump patch |
Sorry, only members of the organization paritytech members can run commands. |
12daf63
to
8ed291c
Compare
@carlosala could we maybe get some test for this? :D (Not sure how the test infrastructure looks right now) |
I'm not really sure either, what do you think @franciscoaguirre? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK there is no test verifying the right delivery fee being charged - aka there are tests verifying fees are charged but not asserting on amounts.
But there are already many tests verifying that DepositReserveAsset
is working under various conditions, so any breakage would be caught. CI should be green for this PR.
At the moment, the delivery fees are being subtracted twice if the
jit_withdraw
mode is enabled, resulting in assets being trapped. This is an example of it.This does not happen in 2412 anymore after #4834.