Protocols / Lending
Compound V3
Compound III (Comet) lending markets. Each market lends one base asset (USDC, WETH, USDT or USDS) and takes other assets as collateral. An agent can supply, withdraw, borrow by withdrawing past its base balance, repay by supplying, allow a manager, claim COMP rewards and read rates and positions.
On-chainEVM18 contractsWebsite · Docs
get_protocol({ "protocol": "compound-v3" })Risks an agent should know
- Each market has one base asset. Lending and borrowing are both in that token, so exposure to other tokens only comes through collateral.
- Withdrawing more base token than supplied silently opens a borrow. Check the amount against balanceOf first.
- Underwater accounts are absorbed and their collateral is sold at a discount through buyCollateral.
- Supply caps, pauses and borrow limits are set by governance per market and can change.
- Rates depend on utilization and can move quickly when liquidity is low.
- Price feeds set collateral values. Oracle failures affect every account in the market.
- Rewards accrue separately and must be claimed.
What an agent can do
| supply | Lend the base token or deposit collateral Approve the token, then Comet.supply(asset, amount) |
| withdraw | Withdraw lent base token or collateral Comet.withdraw(asset, amount). Use balanceOf or collateralBalanceOf for the full amount. |
| borrow | Borrow the base token against collateral Comet.withdraw(baseToken, amount) for more than the account supply balance |
| repay | Repay base token debt Approve the base token, then Comet.supply(baseToken, amount). Supply slightly more than borrowBalanceOf to clear interest accrued after the read; the excess is credited as supply. |
| claim rewards | Claim COMP rewards for an account CometRewards.claim(comet, account, true) |
| delegate | Let another address manage the account Comet.allow(manager, true) |
| liquidate | Absorb underwater accounts and buy the collateral Comet.absorb(absorber, [accounts]) then Comet.buyCollateral(asset, minAmount, baseAmount, recipient) |
Contracts
ethereum · chain id 1
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Ethereum) pool | 0xc3d688B66703497DAA19211EEdff47f25384cdc3 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet WETH market (Ethereum) pool | 0xA17581A9E3356d9A858b789D68B4d866e593aE94 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet USDT market (Ethereum) pool | 0x3Afdc9BCA9213A35503b077a6072F3D0d5AB0840 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet USDS market (Ethereum) pool | 0x5D409e56D886231aDAf00c8775665AD0f9897b56 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| CometRewards (Ethereum) other | 0x1B0e765F6224C21223AeA2af16c1C46E38885a40 source | writeclaim(address,address,bool) writeclaimTo(address,address,address,bool) | Full ABI |
base · chain id 8453
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Base) pool | 0xb125E6687d4313864e53df431d5425969c15Eb2F source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet WETH market (Base) pool | 0x46e6b214b524310239732D51387075E0e70970bf source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| CometRewards (Base) other | 0x123964802e6ABabBE1Bc9547D72Ef1B69B00A6b1 source | writeclaim(address,address,bool) writeclaimTo(address,address,address,bool) | Full ABI |
arbitrum · chain id 42161
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Arbitrum) pool | 0x9c4ec768c28520B50860ea7a15bd7213a9fF58bf source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet WETH market (Arbitrum) pool | 0x6f7D514bbD4aFf3BcD1140B7344b32f063dEe486 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet USDT market (Arbitrum) pool | 0xd98Be00b5D27fc98112BdE293e487f8D4cA57d07 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| CometRewards (Arbitrum) other | 0x88730d254A2f7e6AC8388c3198aFd694bA9f7fae source | writeclaim(address,address,bool) writeclaimTo(address,address,address,bool) | Full ABI |
polygon · chain id 137
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Polygon) pool | 0xF25212E676D1F7F89Cd72fFEe66158f541246445 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
optimism · chain id 10
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Optimism) pool | 0x2e44e174f7D53F0212823acC11C01A11d58c5bCB source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
| Comet WETH market (Optimism) pool | 0xE36A30D249f7761327fd973001A32010b521b6Fd source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
scroll · chain id 534352
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Scroll) pool | 0xB2f97c1Bd3bf02f5e74d13f02E3e26F93D77CE44 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
linea · chain id 59144
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Linea) pool | 0x8D38A3d6B3c3B7d96D6536DA7Eef94A9d7dbC991 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
unichain · chain id 130
| Contract | Address | Key functions | Try |
|---|---|---|---|
| Comet USDC market (Unichain) pool | 0x2c7118c4C88B9841FCF839074c26Ae8f035f2921 source | writesupply(address,uint256) writesupplyTo(address,address,uint256) writewithdraw(address,uint256) writewithdrawTo(address,address,uint256) readbalanceOf(address) readborrowBalanceOf(address) readcollateralBalanceOf(address,address) readisLiquidatable(address) +7 more via get_protocol | Full ABI |
Notes
Only markets with a deployment in the official comet repo and code on chain are listed. The same repo also has Mantle (USDe) and Ronin (WETH, WRON) markets, which are not included yet. Pick the market by chain and base asset. Rates are per second, scaled by 1e18. DefiLlama lists Mantle and Ronin for this protocol.
Sources
- https://api.llama.fi/protocol/compound-v3
- https://defillama.com/protocol/compound-v3
- https://www.compound.xyz/
- https://github.com/compound-finance/comet/tree/main/deployments
- https://github.com/compound-finance/comet/blob/main/deployments/mainnet/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/mainnet/weth/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/mainnet/usdt/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/mainnet/usds/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/base/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/base/weth/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/arbitrum/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/arbitrum/weth/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/arbitrum/usdt/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/polygon/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/optimism/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/optimism/weth/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/scroll/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/linea/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/deployments/unichain/usdc/roots.json
- https://github.com/compound-finance/comet/blob/main/contracts/CometMainInterface.sol
- https://github.com/compound-finance/comet/blob/main/contracts/CometExtInterface.sol
- https://github.com/compound-finance/comet/blob/main/contracts/CometExt.sol
- https://github.com/compound-finance/comet/blob/main/contracts/CometRewards.sol
Researched 2026-11-28. Addresses are copied from the official sources above; check them before moving large amounts.