Skip to content

Conversation

@tsenovilla
Copy link

This PR aims to protect Interlay's cross chain transfers from the upcoming AHM. During the migration, the inference of DOT reserves may lead to lost of funds, so we need to deactivate those transfers during the process.

A bit more context about this issue: https://forum.polkadot.network/t/mandatory-action-guide-for-ahm-broken-native-crosschain-transfers/14634

The proposed solution follows the approach of the ORML team implemented here: open-web3-stack/open-runtime-module-library#1033.

The affected extrinsics on Interlay are:

  • xtokens -> all extrinsics. xtokens use a ReserveProvider to determine the reserve, so the patch is needed here.
  • pallet_xcm -> pallet_xcm calls are filtered out on Interlay, so they're not affected.

Please note that all other reserves aren't affected by this patch and keep working as usual. The migration status should be changed by calling the xtokens.set_migration_phase extrinsic. This extrinsic is only callable by the root origin on Interlay.

As the Interbtc codebase deps are too far in the past, the time doesn't allow to bump everything and bring that change with the ORML crates, so we'll be using an ORML fork from the exact commit used by the Interbtc codebase. The fork is located in the R0gue GitHub organization, concretely here: https://github.com/r0gue-io/open-runtime-module-library/tree/master.

IMPORTANT: This branch slightly modifies the Kintsugi runtime, just for convenience, to allow us compiling the whole workspace. However it MUST be used only to update Interlay

@tsenovilla tsenovilla changed the title chore: AH Migration backport for interlay chore: AH Migration backport for Interlay Oct 14, 2025
@tsenovilla tsenovilla force-pushed the interlay/ahm-backport branch from 56222f2 to 36d1e1c Compare October 15, 2025 19:45
@tsenovilla tsenovilla force-pushed the interlay/ahm-backport branch from efe7c2e to 4e1b3e7 Compare October 16, 2025 08:05
@tsenovilla tsenovilla marked this pull request as ready for review October 16, 2025 15:53
Copy link

@al3mart al3mart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now ready for the Interlay team to review.

We are pretty confident with the current state of this PR. As long as there is no feedback from your side, we don't plan on pushing any more changes here.

sander2 and others added 3 commits October 27, 2025 15:38
error: older versions of the `wasm-bindgen` crate are incompatible with current versions of Rust; please update to `wasm-bindgen` v0.2.8
@sander2 sander2 merged commit 5ab6582 into v1.25-interlay Oct 27, 2025
6 of 8 checks passed
@sander2 sander2 deleted the interlay/ahm-backport branch October 27, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants