ODCinterfacesdataManagersfractionalizers

IFractionERC20DataManager

Interface of the Fraction ERC20 Data Manager

initialize

function initialize(bytes32 dataPoint_, address beneficiary_, address wrapper_, address dataIndex_, address dataObject_, string name_, string symbol_, uint256 nftId_, uint256 amountToBeMinted_, bool userUnlockEnabled_) external

Initializes the DataManager

Parameters

NameTypeDescription
dataPoint_bytes32DataPoint used for the project
beneficiary_address
wrapper_addressAddress of the Wrapper contract (same as Wrapped NFT), must be 0 on secondary chains
dataIndex_addressAddress of DataIndex implementation
dataObject_addressData Object used to store balance data (use OmnichainFungibleTokenWithLocalMintBurnSupplyDO)
name_stringName of the Fraction token
symbol_stringSymbol of the Fraction token
nftId_uint256Id of the Wrapped NFT
amountToBeMinted_uint256Amount of fractions to mint
userUnlockEnabled_boolEnables Fraction owners to unlock via burning their fractions

transferOwnership

function transferOwnership(address newOwner) external

Function used to transfer ownership of the Fraction ERC20 Data Manager

Parameters

NameTypeDescription
newOwneraddressAddress of the new owner

localMintBurnSupply

function localMintBurnSupply() external view returns (uint256)

Function used to get count of all minted and not burned tokens on current chain of all ids

This function returns 0 in secondary chains

Return Values

NameTypeDescription
[0]uint256Difference between tokens minted and burned on current chain of all ids

partiallyUnlockWrappedAssets

function partiallyUnlockWrappedAssets(uint256 fractionsToBurn, bool skipNonPercentageWtypes, address beneficiary) external

Can be used by fractions owner to recieve part of wrapped assets in exchange to his fractions Amount of assets he receives is proportional to burned fractions

Parameters

NameTypeDescription
fractionsToBurnuint256amount of fractions to burn
skipNonPercentageWtypesboolallows to skip non-fungible assets, where correct percentage can not be counted, otherwise if there are such wrapped assets, this call will revert
beneficiaryaddresswho should receive wrapped assets

On this page