Function pallet_assets::pallet::dispatchables::transfer_approved
source · pub fn transfer_approved<T: Config<I>, I: 'static>(
id: T::AssetIdParameter,
owner: <<T as Config>::Lookup as StaticLookup>::Source,
destination: <<T as Config>::Lookup as StaticLookup>::Source,
amount: T::Balance,
)
Expand description
Transfer some asset balance from a previously delegated account to some third-party account.
Origin must be Signed and there must be an approval in place by the owner
to the
signer.
If the entire amount approved for transfer is transferred, then any deposit previously
reserved by approve_transfer
is unreserved.
id
: The identifier of the asset.owner
: The account which previously approved for a transfer of at leastamount
and from which the asset balance will be withdrawn.destination
: The account to which the asset balance ofamount
will be transferred.amount
: The amount of assets to transfer.
Emits TransferredApproved
on success.
Weight: O(1)
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::transfer_approved
.