lending

Analyze DeFi lending protocols for liquidation, interest rate, and collateral vulnerabilities.

60|18|Updated Jan 21, 2026
One-click install
npx skills add https://github.com/PurpleAILAB/Vigilo --skill lending-purpleailab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lending
Source: https://github.com/PurpleAILAB/Vigilo/tree/main/packages/opencode/skills/lending
Command: npx skills add https://github.com/PurpleAILAB/Vigilo --skill lending-purpleailab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a deep understanding of common vulnerabilities and best practices for auditing decentralized finance (DeFi) lending protocols, helping to identify critical risks before they are exploited.

Core Features & Use Cases

  • Vulnerability Identification: Detects risks related to liquidation logic, interest rate models, collateral management, health factor calculations, and bad debt handling.
  • Pattern Analysis: Offers code examples and explanations for common DeFi lending patterns and their associated exploits.
  • Use Case: An auditor can use this Skill to quickly identify potential self-liquidation exploits by checking if liquidation bonuses are misconfigured relative to loan-to-value ratios.

Quick Start

Analyze the provided lending protocol code for potential liquidation vulnerabilities.

Frequently Asked Questions about lending

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

FAQPage Schema
How do I audit DeFi lending protocol smart contracts for vulnerabilities?

To audit DeFi lending protocol smart contracts, analyze liquidation logic, interest rate models, collateral management, and health factor calculations to identify critical risks like self-liquidation and oracle manipulation before they are exploited.

What are common DeFi lending exploits and how do they work?

Common DeFi lending exploits include self-liquidation, precision loss, oracle manipulation, and bad debt handling, which occur when liquidation bonuses are misconfigured relative to loan-to-value ratios or collateral management logic fails.

How do I check for self-liquidation exploits in lending protocol code?

Check for self-liquidation exploits by verifying whether liquidation bonuses are misconfigured relative to loan-to-value ratios, allowing users to liquidate their own positions for profit at the protocol's expense.

Do I need to understand smart contract security principles to audit DeFi lending protocols?

Yes, auditing DeFi lending protocols requires a solid understanding of smart contract security principles and DeFi economic mechanisms to effectively identify vulnerabilities in liquidation logic and interest rate models.

What is the best way to identify oracle manipulation in DeFi lending?

Identify oracle manipulation by analyzing health factor calculations and collateral pricing mechanisms within the lending protocol to detect reliance on manipulable price feeds or stale data.