Compound

Compound is an autonomous rate engine for collateralized Ethereum lending

Compound is an autonomous interest-rate protocol where Ethereum users supply a base asset, borrow against approved collateral, and let utilization-based smart contracts set the lending market's price of credit. Its distinctive feature is the rate curve: supply and borrow APRs move with utilization, so the cost of liquidity rises when borrowers use more of the market and falls when unused capital grows.

This angle matters because the protocol is less about a fixed yield quote and more about reading a live lending market. A supplier looks at the base asset rate, utilization, reserves, and reward settings before depositing. A borrower watches collateral value, borrow capacity, and the point where liquidation becomes possible. The interface hides much of the math, yet the economics still come from on-chain parameters.

Reading Compound's supply rate before depositing

The supply rate belongs to the base asset of a Comet market. If an account has a positive base balance, interest accrues in that same base asset. If the account has a negative base balance, the borrow rate applies instead. Collateral assets play a different role: they secure a loan, but they do not earn the market's supply interest while posted as collateral.

Compound III uses separate supply and borrow models set through governance. Both models read utilization, which is the relationship between total borrows and total supply. Each model has a kink, a utilization point where the rate starts climbing more sharply. That kink is the protocol's pressure valve. When liquidity gets tight, the borrow rate rises to discourage more borrowing and the supply rate rises to attract base asset deposits.

What Comet changed in Compound III borrowing

Comet is the market contract design used by the third major version. A Comet market revolves around one base asset, with approved collateral assets supporting borrows of that base asset. The first market launched with USDC as the base asset on Ethereum, and the same design now gives each market a clearer risk boundary than older pooled lending designs.

Once a wallet enters a Compound III market, the base asset balance is represented internally as a signed value. A positive balance means the account supplied the base token. A negative balance means the account borrowed it. The protocol stores a principal value and updates present balances through supply and borrow indices, so interest accrues continuously through block timestamps rather than through a manual claim action.

Collateral factors and the liquidation buffer

Borrowing capacity comes from collateral factors. If a market accepts WETH, WBTC, or another approved ERC-20 as collateral, governance assigns a factor that states how much base asset value the position supports. A higher factor gives more borrowing room, while supply caps limit how much of a collateral asset the market accepts.

Liquidation factors sit above borrow factors and create a buffer between opening a loan and becoming liquidatable. When collateral value drops or debt grows past that liquidation threshold, an external account calls absorb. The protocol repays the account's base-asset debt from reserves, receives the collateral, and the borrower exits with no remaining debt in that market. This mechanism is precise, but it is unforgiving when collateral prices move quickly.


A wallet workflow from approval to repayment

A position on Compound starts with ordinary EVM wallet actions. The user chooses the market, approves the token where approval is required, supplies the base asset or approved collateral, then borrows only after the interface shows enough borrowing capacity. Repayment uses the supply function with the base asset; once the debt is gone, collateral withdrawal becomes available as long as the transaction keeps the account above protocol requirements.

The borrow action in Comet uses withdraw. Withdrawing the base asset against collateral creates the borrow balance; withdrawing collateral removes assets that are no longer needed to support debt. That naming matters when reading transaction prompts, because the same function family covers both borrowing and ordinary withdrawals.

Where COMP governance enters the market

COMP holders steer Compound through governance, including parameter changes that shape rates, collateral factors, reserve targets, and supported markets. Governance does not mean every rate is manually chosen each day. It means the curve, caps, and risk settings are approved through a public process, then the contracts apply those settings automatically as utilization and balances change.

Rewards add another variable. Comet tracks rewards for suppliers and borrowers of the base asset when a market is configured to distribute an ERC-20 reward token and the required base supply threshold is met. Rewards are claimed through a separate rewards contract, while interest remains part of the base asset accounting. A high reward display deserves a separate check from the underlying supply or borrow APR.


Compound, visual guide

Aave, Maker, and Spark as adjacent choices

Aave offers multi-asset money markets where users lend and borrow across a broader set of reserves, with features such as stable and variable rate concepts in some deployments. Maker-style borrowing centers on minting DAI or its successor ecosystem assets against collateral under vault parameters. Spark blends stablecoin liquidity with lending-market mechanics connected to that ecosystem.

The Comet design is cleaner when a user wants exposure to one base asset market with transparent utilization-based rates and a limited set of collateral types. Broader markets fit users who need more asset pairs or a different stablecoin debt model. The right comparison starts with the asset to borrow, the collateral already held, the chain being used, and tolerance for liquidation risk.


Developer hooks behind the same lending view

For teams, Compound is programmable lending infrastructure rather than only a web interface. The Comet contract exposes functions for supplying, withdrawing, checking collateral balances, reading utilization, calculating rates, and checking whether an account is borrow-collateralized or liquidatable. The same mechanics visible to a user in a dashboard are available to wallets, risk monitors, liquidation systems, and portfolio tools.

Account management adds another layer. An owner grants or removes manager permissions with allow, and EIP-712 signatures support permission changes without the owner submitting the transaction directly. Transfers inside the protocol update balances without moving assets out of the Comet contract, and those transfers fail if they would make an account liquidatable. That makes the protocol useful for integrations, while still forcing every action through the same collateral rules.

Questions people ask about Compound

Fees on a supply or borrow transaction: what pays for the action?

The user pays the network gas fee for the EVM transaction, and the protocol accounting handles interest separately. Supplying an ERC-20 token also requires an approval transaction before the supply transaction unless approval already exists. Borrowers then pay interest through the borrow index over time, while suppliers earn through the supply index when they hold a positive base-asset balance.

Does supplying collateral earn interest in Comet markets?

Collateral assets do not earn the base market's supply interest in Comet. They increase borrowing capacity according to their collateral factors, but the interest-bearing balance is the base asset when supplied as a positive balance. This distinction matters for users who deposit WETH, WBTC, or another collateral token and expect it to behave like a lending deposit.

Can I repay a base-asset loan with the same token I borrowed?

Yes. A borrow is repaid by supplying the base asset back into the same market. If the account borrowed USDC from a USDC base market, repayment is made in USDC. Supplying enough base asset reduces the negative balance to zero; after that, eligible collateral is no longer supporting debt and becomes available to withdraw.

How do I recover after a failed approval transaction?

A failed approval means the spending permission was not recorded, so the next supply attempt will fail until approval succeeds. Check that the wallet is on the correct network, has gas, and is approving the exact token used by the selected Comet market. After a successful approval, submit the supply or repay transaction again with the intended amount.