Solidity Implementation of Multi-Fractional Non-Fungible Token.
Before, ERC20 Token contract should be deployed everytime when fractionalizing a specific NFT.
To solve this problem, this standard proposes a token standard to cover multiple fractionalized nft in a contract without having to deploy each time.
Issue : ethereum/EIPs#4674
PR : ethereum/EIPs#4675
contracts/
helper/
interface/
math/
MFNFT.sol
NFT.sol
ERC20Token.sol
MFNFT.sol : Multi-Fractional Non-Fungible Token Contract
NFT.sol : Non-Fungible Token Contract
ERC20Token.sol : Sample ERC-20 Token Contract
helper/Verifier.sol : Contract that verifies the ownership of NFT before fractionalization
math/SafeMath.sol : Openzeppelin SafeMath Library
interface/IERC20.sol : ERC-20 Token Interface
interface/IERC721.sol : ERC-721 Token Interface
interface/IMFNFT : MFNFT Token Interface
Installation
npm install
Test
npx hardhat test
Coverage
npx hardhat coverage