compound-v3-plugin

創作者:skylavis-sky
1
20

簡介

For Everyone

Supply collateral to borrow USDC or earn yield on Compound V3 (Comet) — each market is fully isolated so a problem with one asset cannot affect your other positions.

  • Borrow USDC by supplying collateral (ETH, WBTC, LINK, UNI, COMP, wstETH, and more) — no fixed repayment schedule, repay whenever you want
  • Earn yield by supplying USDC into the base asset pool at a variable rate driven by borrowing demand
  • Collateral does not earn interest in V3 — your deposited ETH or WBTC secures your borrow position but does not accrue yield
  • Isolated Comet markets across Ethereum, Base, Arbitrum, Polygon, and Optimism — each market is a separate contract so risk stays fully contained
  • COMP rewards distributed automatically to both USDC suppliers and borrowers on top of their base rates
lending
usdc
ethereum
defi

SKILL.md

Compound V3

Supply collateral to borrow USDC or supply USDC to earn yield — with fully isolated markets (Comet), no fixed repayment schedule, and COMP token rewards across multiple chains.

Prerequisites

  • Uses OKX Onchain OS for secure on-chain execution. Make sure your OKX Agentic Wallet is connected to one of: Ethereum, Base, Arbitrum, Polygon, or Optimism.
  • Have the tokens you plan to use as collateral (ETH, WBTC, LINK, UNI, COMP, wstETH, cbETH, etc.), or hold USDC if you simply want to earn yield.
  • Keep enough native gas tokens (ETH on Ethereum/Arbitrum/Base/Optimism, MATIC on Polygon) for transaction fees.

When to Use This Skill

  • You want to borrow USDC without selling your ETH, WBTC, or other supported collateral assets.
  • You have USDC sitting idle and want to earn a variable yield by supplying it to a Compound market.
  • You want a lending protocol where each market is independent and a bad debt event in one market cannot affect your position in another.
  • You want to earn COMP token rewards on top of your base borrow or supply rate.

How It Works

Borrowing USDC

You supply collateral into a Compound V3 market (called a Comet). Each asset has a collateral factor that determines your borrowing capacity — for example, if ETH has a 82% collateral factor and you deposit $1,000 of ETH, you can borrow up to $820 USDC. Your collateral does not earn interest while it is deposited — it solely serves as security for your borrow position.

Once collateral is supplied, you borrow USDC up to your limit. There is no fixed repayment date — you can hold the borrow position as long as your collateral stays above the liquidation threshold. If the value of your collateral drops too close to your outstanding debt, the protocol liquidates part of your collateral to repay the debt and protect the pool.

Supplying USDC to Earn Yield

You can supply USDC directly into a Comet market as the base asset. Your balance earns a variable interest rate that increases when borrowing demand is high and decreases when it is low. Unlike supplying collateral, supplying USDC does earn yield. You can withdraw at any time as long as liquidity is available in the market.

COMP Rewards

Both USDC suppliers and borrowers receive COMP token rewards automatically, distributed on top of their base rates. Rewards accrue continuously and can be claimed at any time from the Compound interface.

Isolated Markets

Each Comet on each chain is a fully separate smart contract. The USDC market on Ethereum is independent from the USDC market on Base, and both are independent from the ETH market on Ethereum. A governance decision or bad debt event in one market has no effect on your position in another.