This repository contains the core Solidity contract of a new lending protocol in which lenders supply liquidity in limit orders. Other users can borrow the assets by posting collateral in limit orders. All orders are displayed in a limit order book and can be taken by traders. All positions are liquidated when the limit orders from which the assets are borrowed are filled.
The benefits of appending a lending protocol to an order book are multiple:
- stop loss orders with guaranteed stop price
- low liquidation costs
- high loan-to-value and leverage
- leverage programmability
- no risk of bad debt
- minimized governance
- automatic market making
Please read more about LendBook in the white paper.