CryptocurrenciesIntermediate

Compound (COMP)COMP

Compound is a lending protocol on Ethereum where users supply crypto to earn interest and borrow against collateral; COMP is its governance token, with a fixed supply of 10 million, used to propose and vote on changes to the protocol.

Compound was one of the first DeFi money markets: smart contracts pool deposits, set interest rates from supply and demand, and liquidate loans that are no longer covered by collateral. Its COMP token, launched in 2020, gave users a vote over the protocol and helped start the "yield farming" wave when it was handed out to lenders and borrowers. This page explains how the lending works, what COMP does and where the risks lie.

Category
Cryptocurrencies
Reading time
6 min
Also called
COMP, Compound Finance, Compound Protocol
Updated

Compound in plain words

In Compound v2, depositors receive cTokens, ERC-20 tokens that track their share of a market and can be redeemed for the underlying asset plus interest.1 Each market has an interest rate model that adjusts rates as the ratio of borrowed to supplied assets changes.1

To borrow, you post Collateral. Each asset has a collateral factor of 0–90%, the share of its value you can borrow against; if debts exceed that limit, the account can be liquidated.2

COMP is an ERC-20 governance token. Holders can vote themselves or delegate their votes to another address.3

A short history of Compound

  1. Founding and funding

    Compound was founded by Robert Leshner and Geoffrey Hayes and raised funding rounds in 2018 and 2019.4

  2. Whitepaper (2019)

    The v2 protocol is based on the Compound whitepaper of 2019, and its code is open source.1

  3. COMP unveiled (2020)

    Compound unveiled COMP in February 2020 and the token went live in mid-April 2020, with some tokens first given to company stakeholders.5

  4. User distribution begins (June 2020)

    From 15 June 2020, about 2,880 COMP a day went to users of eight markets, part of a plan to hand 42% of supply to users over four years.5

  5. Distribution bug (September 2021)

    An upgrade under Proposal 62 contained a bug that let some users claim far too much COMP; the worst case was put at 280,000 COMP, and any fix needed a 7-day governance process.6

  6. Compound III

    Compound III uses a single borrowable base asset per market; its first deployment was on Ethereum with USDC as the base asset.7

Worked examples

Example 1 — Borrow limit and shortfall

−$375 shortfall

You supply $10,000 of ETH in a market with a hypothetical collateral factor of 75% and borrow $6,000. ETH then falls 25%.

Example 1 — Borrow limit and shortfall — calculation
Borrow limit$10,000 × 0.75 = $7,500
Liquidity left$7,500 − $6,000 = $1,500
Collateral after the fall$10,000 × (1 − 0.25) = $7,500 of ETH
New borrow limit$7,500 × 0.75 = $5,625
Shortfall$5,625 − $6,000 = −$375

Account liquidity is collateral times collateral factor, minus borrowing; a negative result is a shortfall, and the account can then be liquidated.2

Example 2 — How a liquidation is shared

$52 bonus

A liquidator repays $1,000 of an under-collateralised loan. Use the documented example of a 1.08 liquidation incentive, with 2.8% going to reserves.

Example 2 — How a liquidation is shared — calculation
Collateral seized$1,000 × 1.08 = $1,080
To protocol reserves$1,000 × 0.028 = $28
To the liquidator$1,080 − $28 = $1,052
Liquidator's bonus$1,052 − $1,000 = $52

The Comptroller documentation uses this example, in which the liquidator gets an extra 5.2% and 2.8% goes to cToken reserves; live values are set on-chain.2

Example 3 — The 2020 user distribution

≈ 4 years

COMP has a fixed supply of 10,000,000. 42% was set aside for users, distributed at about 2,880 COMP a day.

Example 3 — The 2020 user distribution — calculation
Users' allocation10,000,000 × 42% = 4,200,000 COMP
Per year2,880 × 365 = 1,051,200 COMP
Time to distribute4,200,000 ÷ 2,880 ≈ 1,458 days ≈ 4 years

The token contract fixes total supply at 10 million COMP.8 The 42% share, the daily rate and the four-year plan come from the 2020 launch.5

Compound vs. Aave

Both are overcollateralised lending protocols with governance tokens; the details differ.

AspectCompound (COMP)Aave (AAVE)
Deposit receiptcTokens (v2)aTokens
Token supplyFixed at 10 million in the contractSet at 16 million at the 2020 migration
Risk measureAccount liquidity and shortfallHealth factor
Token's main roleProposals, voting and delegationVoting, delegation and Safety Module staking
Newest designCompound III: one borrowable base asset per marketAave V4: hub-and-spoke design

What COMP is used for

  • Governance

    Creating proposals and voting on changes such as new markets and risk settings.3

  • Delegation

    Assigning voting power to a delegate without moving the tokens.3

  • Incentive rewards

    COMP has been paid to suppliers and borrowers, claimable at any time.2

  • Trading

    COMP trades as an ERC-20 token on centralised and decentralised exchanges.

Advantages and disadvantages

Advantages

  • Fixed supply of 10 million COMP written into the token contract.8
  • Open-source protocol with public, on-chain risk rules.1
  • Passed proposals wait in a timelock before taking effect.3
  • A pause guardian can halt minting, borrowing and liquidations but cannot block withdrawals or repayments.3

Disadvantages

  • Smart contract bugs can misdirect funds, as the 2021 COMP distribution bug showed.6
  • Fixes go through the governance process, which can take a week.6
  • Borrowers can be liquidated quickly when collateral prices fall.2
  • Creating a proposal needs 25,000 delegated COMP, so agenda-setting rests with large holders and delegates.3

Going deeper

Read as far as you need. Each level builds on the one before it.

Lend, borrow, vote

Beginner

Lenders receive tokens representing their deposits and can redeem them for the original crypto.4 COMP holders vote on the rules that run the platform.4

How a proposal passes

Intermediate

An address with at least 25,000 delegated COMP can propose. After a 2-day review, voting lasts 3 days, and a proposal passes with a majority and at least 400,000 votes in favour.3 A passed proposal waits 2 days in the Timelock before it can be executed.3

Compound III design

Advanced

In Compound III, users supply collateral to borrow the base asset, and those who supply the base asset earn interest.7 Collateral itself earns no interest, and each collateral asset has a borrow collateral factor, such as 85% in the documentation's WBTC example.9

In v2, cTokens have 8 decimals and accrue interest whenever a market is touched; the docs estimate APY assuming 7,200 blocks a day.1 See Decentralised Finance (DeFi) and Total Value Locked.

Common mistakes

  1. Borrowing up to the limit

    A small fall in collateral turns available liquidity into a shortfall and invites liquidation.

  2. Expecting Compound III collateral to earn interest

    Only the base asset earns supply interest; collateral does not.

  3. Thinking you need COMP to use Compound

    Supplying and borrowing work without holding COMP; the token is for governance.

  4. Ignoring governance delays

    Even urgent fixes pass through review, voting and a timelock.

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1You supply $5,000 of an asset with an 80% collateral factor. What is your borrow limit?
Q2A proposal gets 380,000 votes for and 100,000 against. Does it pass?

Key points to remember

  1. Compound is an Ethereum lending protocol with pooled markets and algorithmic interest rates.
  2. Borrowing is limited by collateral factors; a shortfall allows liquidation.
  3. COMP is a governance token with a fixed supply of 10 million.
  4. Proposals need 25,000 delegated COMP to create and 400,000 votes in favour to pass.
  5. Smart contract bugs, liquidations and slow fixes are the main risks.

Frequently asked questions

How many COMP tokens exist?

The token contract fixes total supply at 10 million COMP.8

What is a cToken?

In Compound v2, a cToken is an ERC-20 token you receive when you supply an asset; it grows in value against the underlying as interest accrues.1

Can someone stop the protocol?

A pause guardian held by a community multisig can disable minting, borrowing, transfers and liquidations, but it cannot block redeeming or repaying.3

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. Compound Docs. Compound v2 documentation: cTokens and interest rates (opens in a new tab) Checked .
  2. Compound Docs. Compound v2 Comptroller (opens in a new tab) Checked .
  3. Compound Docs. Compound v2 governance (opens in a new tab) Checked .
  4. Kraken Learn. What is Compound (COMP)? (opens in a new tab) Checked .
  5. The Block. Compound governance token begins its first day of trading (opens in a new tab) Checked .
  6. The Block. Compound bug leaves $80 million in COMP at risk of being misrewarded (opens in a new tab) Checked .
  7. Compound Docs. Compound III documentation (opens in a new tab) Checked .
  8. Compound (GitHub). Comp.sol: the COMP token contract (opens in a new tab) Checked .
  9. Compound Docs. Compound III collateral and borrowing (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.