Bitcoin Forum
May 30, 2024, 01:44:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Smart Contract for Lender and Borrower: Yay or Nay?  (Read 94 times)
Diornov (OP)
Copper Member
Jr. Member
*
Offline Offline

Activity: 35
Merit: 33

Zenland Founder


View Profile WWW
March 21, 2023, 09:19:23 AM
Last edit: March 21, 2023, 10:02:45 AM by Diornov
 #1

Hello Bitcointalk. My name is Diornov, and I'm the founder of Zenland - a Smart Contract Platform.
Here at Zenland, we are trying to bring the smart contract to the masses, and I have a few ideas I wanted to share with you.

I see there are a lot of lending threads being open here. Most are with collateral assets such as bitcoin or other altcoins.

Would it be useful to create a lending smart contract for users of BitcoinTalk?

The idea I have in mind is 2 types of lending smart contracts - manual and automatic.

I see a lending contract this way - the lender and the borrower create a draft contract specifying the collateral, interest and liquidation rate.

Let's say the lender creates a contract and types how much he will lend for what interest rate under what collateral.
If the borrower is satisfied with the terms, he approves the contract.
Then the lender deploys the contract into the blockchain and transfers the agreed amount of stablecoins into the contract.
For the borrower to get the money from the contract, he needs to transfer the agreed amount of collateral into the contract, and only then the contract allow to release of the lent money.

Now it comes to these 2 types of contracts - manual and automatic, and I'm interested in what you think about it.

Automatic:
If the borrower is ready to repay the loan, he transfers the agreed amount of stablecoins with interest rate into the contract.
He releases its collateral back into his wallet.
The contract is finished and executed.

Suppose the price drops below the liquidation rate specified by the lender at the beginning of contract creation.
In that case, the lender clicks the "Liquidation release" button, and the collateral is released to the lender's wallet for him to sell and cover the expenses.
The contract is finished and executed.

Manual:
The difference with the manual lending contract is that the lender would manually release the collateral.
In liquidation, the release would happen manually with a Zenland agent if the borrower is unwilling to release the collateral to the lender for liquidation.

What am I missing here? Did I cover all the possible issues?
That's pretty much how other lending platforms work in DeFi, and I'm more interested in retail types of business when it happens p2p.

And the main question is - would you be using these types of contracts? If not, then why?



vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
March 21, 2023, 01:10:45 PM
 #2

The smart contract you build specifically needs the collateral token/coin to be on the same chain or network. That won't work for some lenders or borrowers. If I want to lend a bitcoin, how do you(the smart contract) make sure it stayed as it is, without wrapping it to another token, say, WBTC? it applies to another altcoin, Monero or anything that isn't tied to what the smart contract platform is built on.

Last but not least, as you stated by yourself that it is just the same as other lending platforms within defi, what makes your platform better than the others?
Diornov (OP)
Copper Member
Jr. Member
*
Offline Offline

Activity: 35
Merit: 33

Zenland Founder


View Profile WWW
March 23, 2023, 07:15:05 AM
 #3

The smart contract you build specifically needs the collateral token/coin to be on the same chain or network. That won't work for some lenders or borrowers. If I want to lend a bitcoin, how do you(the smart contract) make sure it stayed as it is, without wrapping it to another token, say, WBTC? it applies to another altcoin, Monero or anything that isn't tied to what the smart contract platform is built on.

Last but not least, as you stated by yourself that it is just the same as other lending platforms within defi, what makes your platform better than the others?

Yes, you are right. The only way would be to use wrapped tokens on the same blockchain network. I understand that from the perspective of bitcoin maximalists, PoS blockchains don't have enough trust with their censorship and anonymity issues. I'm not talking about decentralization since most of the tokens in "smart contract" blockchains are owned by a small group of people tightly connected to the project's founders. I'm just trying to build something useful with the resources that I have now. Because I believe that smart contracts are the future, even though we don't have a blockchain that we can all trust to.

The second question, the difference between other lending platforms such as MakerDAO or Aave is that they have strict policies on what collateral on what interest rate you can lend and borrow (pretty much like banks) and usually everything is contained in 1 smart contract, but in my mind, I have an idea where 2 people can create and deploy a lending smart contract with the terms that only both of them agree. I mean, without big web3 companies, they can deploy the separate contract only with the terms they mutually benefit from. For example, the minimum collateral in Oasis App is 175%, but I have seen in the bitcointalk some people are willing to accept collateral as low as 130%.

joniboini
Legendary
*
Offline Offline

Activity: 2198
Merit: 1793



View Profile WWW
March 23, 2023, 11:10:45 AM
 #4

I understand that from the perspective of bitcoin maximalists, PoS blockchains don't have enough trust with their censorship and anonymity issues.
Other than that, I think there are other issues. For example, compared to existing alternatives such as using a multi-sig to secure the loan (if it is a collateralized loan), your solution would add another insecure layer. If it is an uncollateralized loan, then the lender can easily solve this by limiting the criteria for borrowers. While your solution can help them reach other lenders, there is not enough incentive to take that risk compared to what we have right now. At least that's how I see it when I lend to somebody here.

The second question, the difference between other lending platforms such as MakerDAO or Aave is that they have strict policies on what collateral on what interest rate you can lend and borrow (pretty much like banks) and usually everything is contained in 1 smart contract, but in my mind, I have an idea where 2 people can create and deploy a lending smart contract with the terms that only both of them agree. I mean, without big web3 companies, they can deploy the separate contract only with the terms they mutually benefit from. For example, the minimum collateral in Oasis App is 175%, but I have seen in the bitcointalk some people are willing to accept collateral as low as 130%.
Your idea is similar to Kanpeki then. Last time I checked, not that many users are using the to borrow/lend, probably because most of the users are just looking to earn more profit by depositing funds to some lending pool instead of manually finding contracts and funding them. Try to check them out and see if you can improve on their model, who knows maybe you can find customers for alts lending.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
Diornov (OP)
Copper Member
Jr. Member
*
Offline Offline

Activity: 35
Merit: 33

Zenland Founder


View Profile WWW
March 24, 2023, 08:56:19 AM
 #5

Other than that, I think there are other issues. For example, compared to existing alternatives such as using a multi-sig to secure the loan (if it is a collateralized loan), your solution would add another insecure layer. If it is an uncollateralized loan, then the lender can easily solve this by limiting the criteria for borrowers. While your solution can help them reach other lenders, there is not enough incentive to take that risk compared to what we have right now. At least that's how I see it when I lend to somebody here.

There are a few risks with current lending contracts on BitcoinTalk. First, even though both parties use a multisig wallet to secure the collateral if the liquidation price would reach, the borrower may decide not to share the signature just for the sake of argument. In addition, it's not giving the rights to lender to scam the borrower if he decides to sell the collateral immediately after receiving it to make a 30% profit.

Your idea is similar to Kanpeki then. Last time I checked, not that many users are using the to borrow/lend, probably because most of the users are just looking to earn more profit by depositing funds to some lending pool instead of manually finding contracts and funding them. Try to check them out and see if you can improve on their model, who knows maybe you can find customers for alts lending.

Kanpeki Finance is still more B2C, but I'm talking about C2C (How currently Zenland Escrow Platform operates). With every new lending agreement, 2 users deploy a new contract into the blockchain.

But I agree that there's not enough demand for services like this. As you said, it's easier for users to deposit their money to some DeFi business and get their interest rates rather than finding people directly on forums and creating contracts with them.

vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
March 24, 2023, 12:39:41 PM
 #6


But I agree that there's not enough demand for services like this. As you said, it's easier for users to deposit their money to some DeFi business and get their interest rates rather than finding people directly on forums and creating contracts with them.

I don't know what percentage other than bitcoin that most lenders here accepting and what kind of problem they encounter, but have you tried to ask them in regard to your product? It would be the best idea to directly ask them to get a better concept of whether they all really need it or not.

I think even if they all thought your platform might be has some utility, it is still a niche, the lenders/borrowers on here. So yea, the scale of usage won't be enormous, I don't know which else of the market specifically need this kind of solution. And it is also limited to a specific blockchain.
dansus021
Copper Member
Hero Member
*****
Offline Offline

Activity: 2030
Merit: 937


Part of AOBT - English Translator to Indonesia


View Profile WWW
April 04, 2023, 09:59:56 AM
 #7

Well Zenland After you do Escrow I would agree if you build a mechanism like this. The loan board usually transfers dozen money in and out Through Bitcoin network or USDT Trc 20 so make sure these two chain included in your program.

Oh one more thing after you finish build-up don't forget to open paid Review  Grin Grin

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
kelonmusk
Member
**
Offline Offline

Activity: 198
Merit: 10

COMBO Network ex COCOS-BCX


View Profile
April 22, 2023, 12:15:02 PM
 #8

Personally, Zenland smart contract seems like you've considered a lot of the potential scenarios and how the contracts would work in those cases.

However, you might want to think about the trust factor in these contracts. For instance, how would you ensure that the borrowers and lenders trust each other, especially in the manual contract scenario where a Zenland agent gets involved!

In my mind, you would need to establish a reliable reputation system or some form of identity verification. Additionally, I think it's essential to consider the regulatory environment and how it might affect the implementation of these smart contracts. Depending on the jurisdiction, there may be legal implications or requirements to comply with.

⬣⬣⬣⬣⬣⬣⬣⬣    ⬣⬣⬣⬣    ⬣⬣    ⬣     C O M B O     ⬣    ⬣⬣    ⬣⬣⬣⬣    ⬣⬣⬣⬣⬣⬣⬣⬣
A leading provider of scaling solutions for Web3 game developers
|      Twitter      |    Telegram    |     Discord     |     Medium     |      GitHub      |
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!