Code Monkey home page Code Monkey logo

atlantisworldweb3's Introduction

This project demonstrates the use of NFT as liquidity provider to physical assets and create a global market on blockchain. The project aims to provide and generate global market for diamonds.

Challenge Statement


Here is a sample of a sample technical description in summary. Note that the NFT-ERC20 solution has applications beyond art and the user story below actually references diamonds.

The solution consists of two smart contracts: a token contract and a batching contract. They are spawned at the same time by an Ethereum factory and can be created by anyone. Upon creation, a Uniswap market is also created. Each token contract has an owner/creator. Anyone can send NFTs to the batching contract and request the token contract owner to mint corresponding ERC-20 tokens.

User story using diamonds!

Alice is a central figure in the diamond industry. She calculates that the average $/carat value of most diamonds in the market is around $7000. Using our solution she creates the 7000$/Carat ERC-20 diamond token with the aim of making it the standard for diamond fungibility. Increasingly, Alice’s trusted friends are joining Icecap Diamonds creating NFTs for GIA certified diamonds. One of her close business contacts, Bob, sends 30 diamond NFTs to the batching contract that have an average $/Carat value close to $7000. Bobs calls the requestmint function and the batching contract automatically requests a USDC deposit that makes the total average value exactly 7000$/carat. Bob deposits this balance when signing the transaction. Alice approves Bob’s mint request because she knows its authenticity. The NFTs and deposit are now locked on the batching contract. Bob cannot take them back without returning the ERC-20 tokens. The market trusts Alice and considers her ERC-20 tokens representative of the underlying NFT’s value and, of course, fungible. Part of Bob’s diamond inventory is now liquid and being traded on decentralized exchanges. Bob has a buyer for one of the batched diamonds. He sends the required ERC-20’s to the batching contract, they are burned and his NFT returned to him allowing him to transfer it to its new owner. Quickly, a global market of illiquid physical products (diamonds) becomes liquid with all of the transformative effects that liquidity brings.

Explainatory and Demo Video

https://www.youtube.com/watch?v=bDYiXMOeasY&ab_channel=SagarBehara

Instructions To Run

. git clone https://github.com/50-30-20/RFT-Batch-NFT.git
. yarn / npm i
. yarn start / npm start
. Connect with metamask

Flow

atlantisworldweb3's People

Contributors

mkshnik avatar sagar133 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.