26 releases (major breaking)

23.0.0 Apr 3, 2025
22.1.0 Mar 27, 2025
22.0.0 Jan 13, 2025
21.0.0 Sep 26, 2024
0.1.0-dev.2 Jul 27, 2023

#10 in #nft

Download history 6300/week @ 2024-12-25 18218/week @ 2025-01-01 23009/week @ 2025-01-08 33303/week @ 2025-01-15 28759/week @ 2025-01-22 25565/week @ 2025-01-29 27293/week @ 2025-02-05 38614/week @ 2025-02-12 24373/week @ 2025-02-19 4099/week @ 2025-02-26 3516/week @ 2025-03-05 3834/week @ 2025-03-12 2564/week @ 2025-03-19 3486/week @ 2025-03-26 3665/week @ 2025-04-02 2906/week @ 2025-04-09

13,070 downloads per month
Used in 40 crates (4 directly)

Apache-2.0

3.5MB
55K SLoC

NFT Fractionalization Pallet

This pallet provides the basic functionality that should allow users to leverage partial ownership, transfers, and sales, of illiquid assets, whether real-world assets represented by their digital twins, or NFTs, or original NFTs.

The functionality allows a user to lock an NFT they own, create a new fungible asset, and mint a set amount of tokens (fractions).

It also allows the user to burn 100% of the asset and to unlock the NFT into their account.

Functions

  • fractionalize: Lock the NFT and create and mint a new fungible asset.
  • unify: Return 100% of the asset and unlock the NFT.

Lock NFT

Lock an NFT from pallet-nfts and mint fungible assets from pallet-assets.

The NFT gets locked by putting a system-level attribute named Locked. This prevents the NFT from being transferred further. The NFT becomes unlocked when the Locked attribute is removed. In order to unify the fungible asset and unlock the NFT, an account must hold the full issuance of the asset the NFT was fractionalised into. Holding less of the fungible asset will not allow the unlocking of the NFT.

Dependencies

~20–35MB
~590K SLoC