Comet Liquidation

Explains Comet protocol's on-chain liquidation flows for underwater accounts.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/cyotee/compound-V3-comet-skill --skill comet-liquidation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Comet Liquidation
Source: https://github.com/cyotee/compound-V3-comet-skill/tree/main/.opencode/skills/comet-liquidation
Command: npx skills add https://github.com/cyotee/compound-V3-comet-skill --skill comet-liquidation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill clarifies Comet's liquidation mechanics, including the absorb process and collateral discounting, enabling developers to reason about underwater accounts, reserves, and collateral flows.

Core Features & Use Cases

  • Absorb underwater accounts into the protocol balance sheet to recover debt and transfer collateral to reserves.
  • Buy discounted collateral from reserves using base tokens.
  • Compute reserves and collateral availability using the described pricing and liquidation factors.
  • Use Case: Simulate a liquidation scenario with a given underwater account and multiple assets to validate behavior.

Quick Start

Explain the absorb and buyCollateral flows and walk through a simple, hypothetical scenario with an underwater account and a couple of assets.

Frequently Asked Questions about Comet Liquidation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does liquidation work in the Comet protocol?

Liquidation in the Comet protocol works by absorbing underwater accounts into the protocol balance sheet, transferring their collateral to reserves, and allowing users to buy discounted collateral using base tokens. This recovers debt and manages protocol reserves.

What is the absorb mechanism for underwater DeFi accounts?

The absorb mechanism targets underwater accounts in Solidity-based DeFi loan markets, absorbing them into the protocol balance sheet to recover outstanding debt and automatically transferring their collateral assets into protocol reserves.

How do I calculate collateral discounts when buying from Comet reserves?

You calculate collateral discounts when buying from Comet reserves by applying the described pricing feeds and liquidation factors. The buyCollateral function lets you purchase discounted collateral from reserves using base tokens based on these computed values.

Can I simulate a DeFi liquidation scenario with multiple collateral assets?

Yes, you can simulate a DeFi liquidation scenario with multiple assets. The skill enables developers to walk through hypothetical underwater accounts, validate absorb behavior, and reason about collateral availability and reserve management across different asset types.

What Solidity concepts do I need to understand Comet liquidation flows?

Understanding Comet liquidation flows requires knowledge of Solidity-based DeFi protocols, specifically pricing feeds, liquidation factors, reserve management, and collateral discounting mechanisms used to process underwater accounts and buy collateral.

Why does the Comet protocol transfer collateral to reserves during liquidation?

The Comet protocol transfers collateral to reserves during liquidation to consolidate assets from absorbed underwater accounts into a single pool. This allows the protocol to recover debt and sell discounted collateral directly from reserves using base tokens.