You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an idea of how we can build a pool-based lending protocol.
(tx_join_pool): Maker_1-Maker_n join a pool by collaboratively funding pool_contract. For that they receive lender_token according to their shares.
(tx_take_loan): A taker comes and executes the contract by spending pool_contract. This contract enforces that a certain amount of collateral has to end up in pool_contract
(tx_repay_loan): The lender repays the loan. The principal amount + interest are locked in lender_holder_contract. The taker can take the Bitcoin
(tx_liquidate_loan): Anyone can liquidate but has to pay back the the principal. For that she can take the Bitcoin collateral. The principal amount ends up in lender_holder_contract.
(tx_exit_pool): After the loan was paid back, a maker can exit the pool by spending from the lender_holder_contract and providing his maker_n_lender_token. The token gets burned and the maker receives his money.
Some thoughts:
4: since the whole approach is async, a liquidation has to ensure that the makers get their funds back. hence, in a liquidator has to pay back the loan to the pool but receives the collateral. An alternative would be where the lenders would receive the BTC. However, time matters, and the lenders might not be able to exit fast enough to sell their BTC and would end up with a loss.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I had an idea of how we can build a pool-based lending protocol.
pool_contract
. For that they receivelender_token
according to their shares.pool_contract
. This contract enforces that a certain amount of collateral has to end up inpool_contract
lender_holder_contract
. The taker can take the Bitcoinlender_holder_contract
.lender_holder_contract
and providing hismaker_n_lender_token
. The token gets burned and the maker receives his money.Some thoughts:
Some questions which came up:
Beta Was this translation helpful? Give feedback.
All reactions