Compound III, also known as Comet, is the latest version of the Compound protocol. This page provides an overview of how Compound III works and its key concepts.
Compound III is a decentralized lending protocol that allows users to supply assets as collateral and borrow a single base asset. It’s a significant evolution from previous versions of Compound, with a focus on capital efficiency, risk management, and user experience.
Unlike previous versions of Compound, Compound III focuses on a single borrowable asset per deployment (e.g., USDC on Ethereum). This design choice allows for:
If a user’s position becomes unhealthy (i.e., their health factor falls below 1), their position can be liquidated by other users.
Copy
// Example of liquidating a position using Compound Reactconst { liquidate } = useLiquidate();await liquidate('0x1234...', 'WETH', '1000'); // Liquidate 1000 USDC of debt, taking WETH as collateral
Compound III may distribute rewards to users who interact with the protocol. These rewards can be claimed by users and are typically distributed in the form of tokens.
Copy
// Example of claiming rewards using Compound Reactconst { claim } = useClaimRewards();await claim(); // Claim all available rewards