Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The lending protocol

📝 Draft. This chapter has not been reviewed yet — content may be incomplete or change.

🚧 This chapter is a stub. It will tie every cookbook concept together on a real peer-to-peer collateralised lending protocol on Liquid: NFT ownership, Simplicity covenants, partial repayments, vault accumulation, and liquidation.

The complete lending example lives in the repository at examples/lending/ (its txmanifest.json plus the covenant .simf programs). This chapter will adapt it into the cookbook, cross-linking each section back to the recipe that introduced the concept:

  • Lifecyclerecipe 6
  • Params (compile, derived, NFT-encoded) → recipes 2 & 7
  • UTXO types (covenants, script-auth)recipe 5
  • IssueNFTsrecipe 8
  • LockCollateral, SetupLending, RepayLoan, … → recipes 3, 4 & 9