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

Not possible to reserve_transfer_assets back from Statemine to Kusama #1136

Closed
hbulgarini opened this issue Apr 4, 2022 · 3 comments
Closed
Labels
T6-XCM This PR/Issue is related to XCM. T7-system_parachains This PR/Issue is related to System Parachains.

Comments

@hbulgarini
Copy link
Contributor

Companion issue for paritytech/polkadot#5233

All reserved funds moved from Kusama to Statemine can not make their way back to Kusama.

It is not possible to do a reserve_transfer_assets() from Statemine to Kusama because it does not have any trusted Reserves: https://github.com/paritytech/polkadot/blob/master/runtime/kusama/src/xcm_config.rs#L136

The amount is deposited in the Parent's sovereign account in Statemine/Statemint, but the UMP message fails in the relay chain.

The same applies for Statemint<>Polkadot & Westmint<>Westend.

@hbulgarini hbulgarini added T7-system_parachains This PR/Issue is related to System Parachains. T6-XCM This PR/Issue is related to XCM. labels Apr 4, 2022
@hbulgarini hbulgarini added this to the statemint-v9.0.0 milestone Apr 4, 2022
@NachoPal
Copy link
Contributor

NachoPal commented Apr 4, 2022

This PR paritytech/polkadot#4549 will open the door for users to "lose" their funds getting them trapped in Kusama's sovereign account in Statemine. As explained above, since Statemine is not a reserve of Kusama, ReserveAssetDeposited will be dropped and the UMP message will fail with UntrustedReserveLocation.

To solve this issue, we will modify XcmReserveTransferFilter in Statemine from Everything to something like EverythingButParent, to prevent users to reserve transfers to Kusama.

Same applies for Statmint<>Polkadot and Westmint<>Westend.

@gilescope
Copy link
Contributor

This we believe is prevented by #1169

@hbulgarini
Copy link
Contributor Author

Prevented with: #1169

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

No branches or pull requests

3 participants