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

Allow Snowbridge bridged ERC20 Reserves from Asset Hub #1249

Merged

Conversation

alistair-singh
Copy link
Contributor

Allows assets from different consensus systems (parents > 1) to be reserve deposited from Asset Hub as a reserve. Asset Hub acts as a reserve for bridged assets bridged using Bridge Hub and that means that this PR will also allow Asset Hub to be the reserve for assets bridged by the Polkadot <-> Kusama bridge.

@ark930 ark930 merged commit e425a4b into bifrost-io:develop May 22, 2024
1 check failed
Comment on lines +506 to +509
/// Matches foreign assets from a given origin.
/// Foreign assets are assets bridged from other consensus systems. i.e parents > 1.
pub struct IsForeignNativeAssetFrom<Origin>(PhantomData<Origin>);
impl<Origin> ContainsPair<MultiAsset, MultiLocation> for IsForeignNativeAssetFrom<Origin>

Choose a reason for hiding this comment

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

Not all foreign assets are bridged from other ecosystems.

I suggest you change this comment and structure name to something like:

Suggested change
/// Matches foreign assets from a given origin.
/// Foreign assets are assets bridged from other consensus systems. i.e parents > 1.
pub struct IsForeignNativeAssetFrom<Origin>(PhantomData<Origin>);
impl<Origin> ContainsPair<MultiAsset, MultiLocation> for IsForeignNativeAssetFrom<Origin>
/// Matches bridged assets from a given origin.
/// Assets bridged from other consensus systems. i.e parents == 2.
pub struct IsBridgedAssetFrom<Origin>(PhantomData<Origin>);
impl<Origin> ContainsPair<MultiAsset, MultiLocation> for IsBridgedAssetFrom<Origin>

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.

3 participants