Skip to content
Snippets Groups Projects
Commit 46cb3528 authored by ron's avatar ron
Browse files

SetAppendix with fee not trapped

parent 7ee48324
No related merge requests found
Pipeline #494711 waiting for manual action with stages
in 35 minutes and 13 seconds
......@@ -433,15 +433,16 @@ impl<
let dest_para_fee_asset: Asset = (Location::parent(), dest_para_fee).into();
instructions.extend(vec![
// `SetAppendix` ensures that `fees` are not trapped in any case
SetAppendix(Xcm(vec![DepositAsset {
assets: AllCounted(1).into(),
beneficiary: Location::new(1, [Parachain(dest_para_id)]),
}])),
// Perform a reserve withdraw to send to destination chain. Leave half of the
// asset_hub_fee for the delivery cost
InitiateReserveWithdraw {
assets: Definite(
vec![
asset.clone(),
(Location::parent(), dest_para_fee + asset_hub_fee / 2).into(),
]
.into(),
vec![asset.clone(), (Location::parent(), dest_para_fee).into()].into(),
),
reserve: Location::new(1, [Parachain(dest_para_id)]),
xcm: vec![
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment