Fungible and non-fungible assets

ASSETS
The universal credit system supports the creation and use of tokens, here so called ‘assets’.
Assets can be fungible or non-fungible. All assets are stored under ~/assets/. The main difference between the currency UCC and assets is that there is no scoring done when transferring assets.

FUNGIBLE ASSETS
Fungible assets are assets that can be converted by all users.
This means, that every user can exchange his balance to this asset. The exchange of fungible assets is unlimited; there is no maximum amount that can be exchanged/converted. Below is an example of a fictitous fungible asset ‘TestFungibleToken’ having the asset-symbol ‘TFT.1655676000’ :

example asset TFT.1655676000:

asset_description=TestFungibleToken
asset_price=2.000000000
asset_fungible=1

asset_description is the description of the assets, asset_price is the price per unit in UCC. asset_fungible=1 defines that this is a fungible asset. The import of fungible assets that other users have created is disabled per default. To enable the auto-import of fungible assets you have to modify the file control/config.conf and set import_fungible_assets=1.

NON-FUNGIBLE ASSETS
Non-fungible assets are asset that cannot be converted/exchanged.
To posess such a asset you either have to receive it from a owner or you have to be the initial owner yourself. The total amount of a non-fungible asset is defined as value asset_quantity. Below is an example of a fictitous non-fungible asset ‘TestNonFungibleToken’ having the asset-symbol ‘TNFT.1655676000’:

example asset TNFT.1655676000:

asset_description=TestNonFungibleToken
asset_owner=9d8c98a97b2c3e689afef90310a35130bde86fd6f43ef6764b391c40ba37f8dd.1613477808
asset_quantity=100.000000000
asset_fungible=0

asset_description is the description of the assets, asset_owner is the initial owner, asset_quantity is the number of tokens. asset_fungible=0 defines, that this is a non-fungible asset. The import of fungible assets that other users have created is disabled per default. To enable the auto-import of fungible assets you have to modify the file control/config.conf and and set import_non_fungible_assets=1.