Thought it will be a better idea to give resources to lenders and borrowers here who deal with ETH and ERC20 Tokens for a loan.
I am shocked to see the ETHlend token raising 25 Million for just this small code. Impressive not in terms of code or development but in terms of tricking people to assume it a rocket science.
Here is the pitch:
Any Individual can develop the smart contract.
Borrower sends the ERC-20 Tokens to the contract.
Lenders send the ETH to the smart contract.
Smart Contract sends the ETH to the borrower and holds the ERC-20 Tokens in it for a required period of time.
If borrower does not send back the ETH before the required period of time the Smart Contract consider it as a NPA ( Non performing asset ) and transfers tokens to Lenders.
Let me know if this idea is good, the catch here is that you need to look for collateral of good value else tokens lying in smart contract will depreciate in value in time of market crash and you cannot do anything.
The Smart contract is easily implementable and needs only Metamask and solidity remix and ofcourse two parties.
I find a couple of issues with the whole idea
- What's to guarantee that the smart contract works? As in like say YOU might develop a proper smart contract that works but people here from time to time pull of scams with fake ERC20 tokens which even people who're usually smart fall for. This idea is rife with a risk of scams especially for people who're not careful and send money to the wrong smart contract. Any individual can in theory make the smart contract but realistically not everyone can make or verify the authenticity of it. Question is what would you trust and prefer more, some address the lender/borrower tells you to send money to or dealing with a trusted and reputed user
- Can the smart contract verify the authenticity of the tokens? Or would that be the responsibility of the lender to check that the borrower has sent the proper tokens and not some fake tokens they made themselves
- How do percentages play into the whole issue? Like would the smart contract support automatic liquidation of the funds as soon at the price dips below the threshold of whatever is decided by the two people involved in the trade.
1. You don't understand solidity.
2. Smart contract is smart enough to detect fake tokens.
3. Smart contract will not be developed my side..wait a min..it doesn't matter who so ever develop it, once the money (ETH/ERC-20 tokens) are sent to it, it will execute the way it is designed no matter who created it.
The implemented version is here:
https://app.ethlend.io/main/all/1 ( see the simplicity )
I am just curious that if people ( both parties) wanna sort this without involvement of 3rd party like ethlend or not.