Function pallet_assets::pallet::dispatchables::transfer_keep_alive
source · pub fn transfer_keep_alive<T: Config<I>, I: 'static>(
id: T::AssetIdParameter,
target: <<T as Config>::Lookup as StaticLookup>::Source,
amount: T::Balance
)
Expand description
Move some assets from the sender account to another, keeping the sender account alive.
Origin must be Signed.
id
: The identifier of the asset to have some amount transferred.target
: The account to be credited.amount
: The amount by which the sender’s balance of assets should be reduced andtarget
’s balance increased. The amount actually transferred may be slightly greater in the case that the transfer would otherwise take the sender balance above zero but below the minimum balance. Must be greater than zero.
Emits Transferred
with the actual amount transferred. If this takes the source balance
to below the minimum for the asset, then the amount transferred is increased to take it
to zero.
Weight: O(1)
Modes: Pre-existence of target
; Post-existence of sender; Account pre-existence of
target
.
Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::transfer_keep_alive
.