Overview
Compound V2 is the original cToken-based money market on Ethereum mainnet. As of 2026, all 6 major markets (cDAI / cUSDC / cUSDT / cETH / cWBTC2 / cCOMP) have governance-paused new supply - V2 is in wind-down mode and Compound team's active development is on V3 (Comet). This plugin is positioned as an exit tool: redeem existing cToken positions, repay legacy debt, claim accrued COMP rewards. New supply / borrow attempts are caught at pre-flight and redirected to compound-v3-plugin.
Prerequisites
- onchainos CLI installed and logged in
- ETH on Ethereum mainnet (>=0.005 ETH minimum to cover L1 gas; Compound V2 ops are gas-heavy)
- For exit flows: existing Compound V2 cToken supply OR borrow position. Run
quickstartto detect. - For new supply/borrow: install
compound-v3-plugininstead - V2 is paused.
Quick Start
- Check your current state and get a guided next step:
compound-v2-plugin quickstart - If you see
status: rpc_degraded- public Ethereum RPC failed; wait a minute and retry:compound-v2-plugin quickstart - If you see
status: protocol_winddown- you have no V2 positions and supply is paused. Installcompound-v3-pluginfor active flows:npx skills add okx/plugin-store --skill compound-v3-plugin - If you see
status: has_supply_can_redeem- exit your supply position back to wallet:compound-v2-plugin withdraw --token DAI --amount all --confirm - If you see
status: has_debt_can_repay- clear your debt cleanly (uint256.max sentinel, dust-free):compound-v2-plugin repay --token USDC --all --confirm - If you see
status: has_comp_accrued- claim accumulated COMP rewards:compound-v2-plugin claim-comp --confirm - If you see
status: insufficient_gas- top up at least 0.005 ETH on mainnet:compound-v2-plugin markets - To inspect markets / pause flags / APYs:
compound-v2-plugin marketsor per-position detail:compound-v2-plugin positions