lending-borrowing

Analyze smart contracts for lending and borrowing protocol security vulnerabilities.

1|1|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/Apegurus/solidity-argus --skill lending-borrowing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lending-borrowing
Source: https://github.com/Apegurus/solidity-argus/tree/main/skills/protocol-patterns/lending-borrowing
Command: npx skills add https://github.com/Apegurus/solidity-argus --skill lending-borrowing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive security review framework for smart contracts in lending and borrowing protocols, focusing on critical areas like liquidations, interest accrual, and accounting to prevent exploits.

Core Features & Use Cases

  • Liquidation Logic Analysis: Identifies vulnerabilities in self-liquidation, front-running, and health factor calculations.
  • Interest Rate Model Review: Checks for manipulation risks and accrual errors.
  • Oracle Dependency Assessment: Evaluates risks associated with price manipulation and stale data.
  • Collateral Management Scrutiny: Assesses risks related to collateral factors and bad debt.
  • ERC4626 Accounting Checks: Protects against inflation and rounding exploits.
  • Use Case: Audit a new DeFi lending protocol to ensure its liquidation mechanism is robust and cannot be exploited by malicious actors.

Quick Start

Review the lending-borrowing skill for security vulnerabilities in smart contracts.

Frequently Asked Questions about lending-borrowing

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

FAQPage Schema
How do I audit a DeFi lending protocol for liquidation vulnerabilities?

To audit DeFi lending liquidation vulnerabilities, analyze smart contracts for self-liquidation risks, front-running, and incorrect health factor calculations. This process identifies edge cases in liquidation thresholds to prevent exploits.

What security risks exist in ERC4626 accounting for lending protocols?

ERC4626 accounting security risks include inflation attacks and rounding exploits. Analyzing vault contracts identifies incorrect decimal handling and accounting errors, protecting lending protocols from value extraction.

How do oracle dependencies affect smart contract security in borrowing protocols?

Oracle dependencies affect borrowing protocol security by introducing price manipulation and stale data risks. Assessing these dependencies ensures collateral valuation remains accurate and resistant to external data feeds.

Can smart contract analysis detect interest rate model manipulation in DeFi?

Yes, smart contract analysis detects interest rate model manipulation in DeFi by reviewing accrual logic for errors and manipulation vectors. This identifies vulnerabilities in how borrowing rates are calculated and compounded.

What are common attack vectors in DeFi collateral management?

Common DeFi collateral management attack vectors involve exploiting collateral factors and creating bad debt. Scrutinizing smart contract logic identifies these risks before deployment, ensuring protocol solvency.

Does reentrancy affect liquidation logic in lending smart contracts?

Reentrancy affects liquidation logic in lending smart contracts by allowing malicious actors to manipulate state during execution. Identifying reentrancy vulnerabilities ensures health factor calculations and collateral transfers execute securely.