0cf uses RenVM to enable 20 second conversions from BTC to DAI
Posted Apr 8, 2020, 10:20 PM UTC
Posted Apr 8, 2020, 10:20 PM UTC
I don't understand how this is possible?
The minting BTC equivalent (renBTC) on ethereum is handled by renVM.
0cf facilitates short term loans of renBTC from a liquidity pool (of renBTC that has previously been shifted). The loan is collateralized by itself and any resulting assets from any trading with the loan amount + a bond posted by the keeper that triggered the loan.
The borrower (trader using the service in this scenario) is controlling a borrow proxy smart contract. Basically an enclave they can trade (with approved assets/platforms) in to lock in the price they see when they initiate the trade.
If the BTC transaction doesnt make it through the system liquidates all the assets in the borrow proxy, returning as much as possible of the loan to the liquidity pool and whatever is left to the keeper (keeper taking most of price + confirmation risk).
[removed]
In before some steals millions using a timed exploit.
not possible. the user is not able to withdraw funds until the BTC transaction has 6 confirmations. Between 0 and 6 they can trade the borrowed renBTC at enabled locations but the assets are all held in a borrow proxy - a smart contract they direct but which can be liquidated if their BTC transaction doesnt make it to the appropriate confirms in the appropriate amount of time.