Function pallet_restricted_xtokens::pallet::dispatchables::transfer
source · pub fn transfer<T: Config>(
currency_id: T::CurrencyId,
amount: T::Balance,
dest: Box<VersionedLocation>,
dest_weight_limit: WeightLimit
)
Expand description
Transfer native currencies.
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.
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
.