Skip to content
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-executor: DepositReserveAsset charges delivery fees from inner assets #3142

Conversation

acatangiu
Copy link
Contributor

This fix aims to solve an issue in Kusama that resulted in failed reserve asset transfers.

During multi-hop XCMs, like reserve asset transfers where the reserve is not the sender nor the destination, but a third remote chain, the origin is not available to pay for delivery fees out of their account directly, so delivery fees should be paid out of transferred assets.

This commit also adds an xcm-emulator regression test that validates this scenario is now working.

@acatangiu acatangiu added R0-silent Changes should not be mentioned in any release notes T6-XCM This PR/Issue is related to XCM. labels Jan 30, 2024
@acatangiu acatangiu self-assigned this Jan 30, 2024
@acatangiu acatangiu requested a review from a team as a code owner January 30, 2024 18:07
@acatangiu acatangiu marked this pull request as draft January 30, 2024 18:08
…sets

This fix aims to solve an issue in Kusama that resulted in failed
reserve asset transfers.

During multi-hop XCMs, like reserve asset transfers where the reserve
is not the sender nor the destination, but a third remote chain, the
origin is not available to pay for delivery fees out of their account
directly, so delivery fees should be paid out of transferred assets.

This commit also adds an xcm-emulator regression test that validates
this scenario is now working.

Signed-off-by: Adrian Catangiu <adrian@parity.io>
@acatangiu acatangiu marked this pull request as ready for review January 30, 2024 18:11
@acatangiu acatangiu force-pushed the xcm-executor-quick-fix-multihop-messages branch from 48ea3ce to 4d26f38 Compare January 30, 2024 18:11
@franciscoaguirre franciscoaguirre added this pull request to the merge queue Jan 31, 2024
Merged via the queue into paritytech:master with commit 5354097 Jan 31, 2024
123 checks passed
@acatangiu acatangiu deleted the xcm-executor-quick-fix-multihop-messages branch January 31, 2024 11:35
franciscoaguirre added a commit that referenced this pull request Feb 1, 2024
…sets (#3142)

This fix aims to solve an issue in Kusama that resulted in failed
reserve asset transfers.

During multi-hop XCMs, like reserve asset transfers where the reserve is
not the sender nor the destination, but a third remote chain, the origin
is not available to pay for delivery fees out of their account directly,
so delivery fees should be paid out of transferred assets.

This commit also adds an xcm-emulator regression test that validates
this scenario is now working.

Signed-off-by: Adrian Catangiu <adrian@parity.io>
Co-authored-by: Francisco Aguirre <franciscoaguirreperez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T6-XCM This PR/Issue is related to XCM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants