← Back to home

NF20

Its a ERC1155 project which fractionalizes ERC721 tokens and creates ERC20 tokens for the caller, the ERC20 tokens can also be redeemed for the underlying NFT.

Screenshots

NF20 screenshot 1
NF20 screenshot 2
NF20 screenshot 3

Problem Statement

The inspiration behind this project was fractional ownership. Essentially there are 3 problems with NFTsThey are expensiveThey do not allow fractional ownership and tradingThey are not flexible when used as collateralWe can solve all of them by just creating derivative ERC20s for NFTs. It has these advantages:Cheap to invest in, creating more liquidity for small investorsThese fractions can be traded quickly and can help to create more derivativesAs an owner of NFT I can fractionalize them and only use the amount of collateral I need, and the rest of the ERC20 stay with me.This Project has 2 functions on top of ERC1155, fractionalize and Redeem. Fractionalize: We need to approve the contract address with the NFT contract in order to do this. Once done, this function transfers the NFT to itself and creates the ERC20 tokens for the NFT owner. Redeem: This function can only be used by the owner of all the ERC20 tokens for a particular NFT. When the ERC20 owner/buyer calls this function, the function burns the 100% supply of ERC20 tokens and sends the NFT to the owner/buyer.

Solution

ERC1155 in the backend, with help from ERC721 contracts to test, hardhat to deploy and verify and React and ethers in the frontend. I was underconfident with what I had learnt with solidity and needed to implement a project. We were surprised at how well we understood the ERC1155 documentation and how quickly we could implement the project.

Hackathon

Metabolism

2024

Contributors