Function pallet_nft_fractionalization::pallet::dispatchables::fractionalize
source · pub fn fractionalize<T: Config>(
nft_collection_id: T::NftCollectionId,
nft_id: T::NftId,
asset_id: AssetIdOf<T>,
beneficiary: AccountIdLookupOf<T>,
fractions: AssetBalanceOf<T>,
)
Expand description
Lock the NFT and mint a new fungible asset.
The dispatch origin for this call must be Signed. The origin must be the owner of the NFT they are trying to lock.
Deposit
funds of sender are reserved.
nft_collection_id
: The ID used to identify the collection of the NFT. Is used within the context ofpallet_nfts
.nft_id
: The ID used to identify the NFT within the given collection. Is used within the context ofpallet_nfts
.asset_id
: The ID of the new asset. It must not exist. Is used within the context ofpallet_assets
.beneficiary
: The account that will receive the newly created asset.fractions
: The total issuance of the newly created asset class.
Emits NftFractionalized
event when successful.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::fractionalize
.