Connecting people with their money.
Table of Contents
This project was developed for the RevaHack-2021, by team PilluzyM.
Small business owners often get exploited by moneylenders when borrowing money. High and unfair rates of interest, middlemen, and a process where the entire power lies in the hands of the lender leaves the borrowers vulnerable to exploitation. The entire process is very slow, and requires a lot of manual work.
We propose a solution to this problem through our DApp Decentralised Financial Peer to Peer Lender based on blockchain technology built on ethereum.
- Time efficient : Blockchain allows us to make the entire process decentralized, where neither of the parties has all of the power. It offers transparency and connects the borrower directly to the lender; with no middlemen involved. The process is automated and hence a lot faster than traditional lending methods.
- Fair Interest Rates : Since blockchain is immutable, the interest rate once decided upon cannot be changed later in an unfair way. The lender gets to specify the desired interest rate beforehand and the borrower gets to choose the interest rate he wants from the ones offered by the different lenders.
- Seamless repayment : Blockchain also removes the worry of the lenders of having their loans repaid. If the borrower does not repay the loan before the specified due date, the lenders have the mortgage submitted by the borrower which can then be auctioned off.
Screenshots of our DApp are added to this link.
Demonstration of our Dapp is added to this link. You can checkout the presentation here.
- Borrowers can create their loan proposal with the amount they want, their favourable repayment due date and CID of their mortgage uploaded on IPFS.
As of now we are using a decentralised public IPFS gateway. To use our DApp generate your file CID here before adding it as a mortgage.
- Lender's can verify the borrower's data and send their proposal with their favourable interest rate.
- Borrower's can choose multiple lenders of their interest.
- Borrower can repay the loan anytime they want before the due date and amortized loan will be transacted.
- After the repayment date has passed, borrower cannot repay the loan and their mortgage will be revoked and auctioned off.
- Ethereum
- Solidity
- Truffle
- MetaMask
- JavaScript
- Ganache
- Web3
- jQuery
Pre-Requisites Ganache MetaMask Truffle
- Fork this repository.
- Clone the repository
git clone https://github.com/kshitij-404/DeFi-P2P-Lender.git
- Open the folder in which you cloned the repository.
- Open Ganache to run your local blockchain.
- Run this command to build your smart contracts.
truffle init truffle test truffle migrate --reset
- Update your config.js present in frontend directory using abi and address present in build files.
- Run on your local host and connect your wallet with metamask to perfrom the transactions.
Star this repository ✨ or send us some ethers at 0x08C5374DfB9Df1A5D42C76a00AcA277CF98ABe50
- We can create a local IPFS gateway to store the files and create CIDs.
- We can have user profile system for both borrowers and lenders.
- We can have a more robust system to verify the mortgages.
- We can have a credit score system for both the borrowers and the lenders based on their transaction history.
- We can have an alternative way to revoke the mortgage other than auctioning it off.