pub fn transfer_multiasset_with_fee<T: Config>(
asset: Box<VersionedAsset>,
fee: Box<VersionedAsset>,
dest: Box<VersionedLocation>,
dest_weight_limit: WeightLimit
)
Expand description
Transfer Asset
specifying the fee and amount as separate.
dest_weight_limit
is the weight for XCM execution on the dest
chain, and it would be charged from the transferred assets. If set
below requirements, the execution may fail and assets wouldn’t be
received.
fee
is the multiasset to be spent to pay for execution in
destination chain. Both fee and amount will be subtracted form the
callers balance For now we only accept fee and asset having the same
Location
id.
If fee
is not high enough to cover for the execution costs in the
destination chain, then the assets will be trapped in the
destination chain
It’s a no-op if any error on local XCM execution or message sending. Note sending assets out per se doesn’t guarantee they would be received. Receiving depends on if the XCM message could be delivered by the network, and if the receiving chain would handle messages correctly.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::transfer_multiasset_with_fee
.