project screenshot 1
project screenshot 2

NFT2DeFi

NFT Lending protocol and dapp allows borrowers to find best lenders via auction and both sides to further engage in DeFi

NFT2DeFi

Created At

NFTHack 2022

Project Description

Owners of NFTs can get loans by using their NFTs as collateral. In order to find the best lender, they set up auctions, in which each lender competes for the lowest loan repayment amount. During the auction, each bidder (potential lender) deposits a specified amount in order to participate. The deposit is returned, as soon as a better bidder arrives, so if a bidder loses the auction, their deposit is immediately returned. After the auction the borrower can activate the loan to use and further engage in DeFi. The lender can safely profit from the collateralized loan repayment or liquidation. If the lender does not authorize the transfer or has insufficient funds, the borrower gets to keep the deposit, get the collateral back and terminate the loan. If the borrower fails to repay the loan on time, the lender can liquidate the loan and keep the collateral. If the borrower fails to initiate the loan, he can keep the deposit, but lose the collateral.

How it's Made

Written in Solidity and JavaScript and using React and ethers-js.

Using Hardhat toolset.

Smart contracts deployed on Polygon Mumbai Testnet and Harmony Testnet Shard 0.

The list of auctions, the auction process and the lending process are all in one smart contract. This contract keeps in custody the top bidder's deposit, the loan collateral NFT and redirects the assets according to fair logic. There is no database or other back-end, as all data is stored on the blockchain (EVM data structures) and the front-end is served via IPFS.

background image mobile

Join the mailing list

Get the latest news and updates