💸 A P2P lending platform based on Ethereum.
Cobweb is a P2P lending platform based on Ethereum.
The platform is dedicated to solving the problem of asymmetric information between the two parties in the P2P lending, misappropriation of borrowings by the transaction intermediary platform, and even the borrower's overdue payment.
Everyone can check the borrowing situation of everyone, the borrower and the lender are all in the same position, and there will be no information asymmetry.
Every loan is directly from the borrower to the lender, without passing through the middleman, so there will be no situation where the platform collapses and the money escapes.
With the blockchain, we can record the repayment situation of each individual, the borrowing situation, we can establish an open and transparent credit system based on economic principles and sociology.
Before you start, you need to install the following things:
OK, let's go.
- down the repo.
$ git clone https://github.com/Zophyr/Cobweb
-
open ganache
-
migrate the contract
$ cd Cobweb/
$ truffle migrate --reset
- run test
$ truffle test
When you see info like the following, you have successfully installed:
Using network 'development'.
Contract: Cobweb
✓ Connect the blockchain and find the address.
✓ Create two bills. (347ms)
✓ Try to withdraw money by asker. (184ms)
✓ Try to return money by asker. (244ms)
✓ Try to callback money by giver. (205ms)
5 passing (1s)
You can run
$ npm run dev
to open the website for cobweb.
When you want to connect to the blockchain, you need to add a account from Ganache to metamask.
After that, you can see your account address display on the bottom of the website.
We can write the lender's mortgage ownership to the blockchain. When the lender is unable to repay the debt, we automatically transfer the ownership of the mortgage to the borrower. However, the problem is that the relevant society and relevant legal institutions are required to recognize the contract.
With the help of Ethereum, we give each customer a credit rating based on the user's past loan and repayment situation. According to different ratings, the amount of money the user can borrow will be different.
It should be cross-platform. There shouldn't be just one web side, there should be a mobile client and a computer client or even a WeChat miniprogram. At the same time, there is still huge room for improvement in human-computer interaction.