> For the complete documentation index, see [llms.txt](https://resources.defirisk.intotheblock.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.defirisk.intotheblock.com/compound-v2.md).

# Compound v2

<figure><img src="https://2404821215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQvgIHnQBPshWROyZ73aR%2Fuploads%2FlArcHfD57vAYFrINZJ53%2Fimage.png?alt=media&amp;token=96f0d5f3-19e9-406f-b3ab-3e1420b79330" alt=""><figcaption></figcaption></figure>

Compound V2 is a decentralized finance (DeFi) protocol that enables users to lend or borrow cryptocurrencies in a trustless ecosystem. By depositing assets into the protocol, lenders can earn interest, while borrowers can secure loans by providing collateral, all managed through smart contracts.
