Skip to content

Commit

Permalink
change(kreivo-runtime): trust reserves from DOT
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 authored and olanod committed Jun 26, 2024
1 parent 726c7af commit d781f49
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions runtime/kreivo/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ parameter_types! {
pub AssetsPalletLocation: Location =
PalletInstance(<Assets as PalletInfoAccess>::index() as u8).into();
pub UniversalLocation: InteriorLocation = [
GlobalConsensus(NetworkId::Polkadot),
GlobalConsensus(NetworkId::Kusama),
Parachain(ParachainInfo::parachain_id().into()),
].into();
Expand All @@ -68,7 +69,7 @@ pub type LocationToAccountId = (
pub type LocationConvertedConcreteId = xcm_builder::MatchedConvertedConcreteId<
FungibleAssetLocation,
Balance,
StartsWith<AssetHubLocation>,
(StartsWith<AssetHubLocation>, StartsWith<PolkadotLocation>),
AsFungibleAssetLocation,
JustTry,
>;
Expand Down Expand Up @@ -168,7 +169,8 @@ pub type Barrier = (
pub type AssetTransactors = (FungibleTransactor, FungiblesTransactor);

parameter_types! {
pub AssetHubLocation: Location = Location::new(1, [Junction::Parachain(ASSET_HUB_ID)]);
pub AssetHubLocation: Location = Location::new(1, [Parachain(ASSET_HUB_ID)]);
pub PolkadotLocation: Location = Location::new(2, [GlobalConsensus(NetworkId::Polkadot)]);
}

//- From PR https://github.com/paritytech/cumulus/pull/936
Expand Down Expand Up @@ -208,7 +210,11 @@ pub type Traders = (
UsingComponents<WeightToFee, RelayLocation, AccountId, Balances, ResolveTo<TreasuryAccount, Balances>>,
);

pub type Reserves = (NativeAsset, ReserveAssetsFrom<AssetHubLocation>);
pub type Reserves = (
NativeAsset,
ReserveAssetsFrom<AssetHubLocation>,
ReserveAssetsFrom<PolkadotLocation>,
);

pub struct XcmConfig;
impl xcm_executor::Config for XcmConfig {
Expand Down

0 comments on commit d781f49

Please sign in to comment.