pub fn transfer_with_fee<T: Config>(
    currency_id: T::CurrencyId,
    amount: T::Balance,
    fee: T::Balance,
    dest: Box<VersionedLocation>,
    dest_weight_limit: WeightLimit
)
Expand description

Transfer native currencies 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 amount to be spent to pay for execution in destination chain. Both fee and amount will be subtracted form the callers balance.

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_with_fee.