resupply-lending

Explain collateralized borrowing, collateral, debt, and health factor validation in Resupply's lending system.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Understand and implement collateralized lending mechanisms in the Resupply protocol, including how to deposit collateral, borrow reUSD, and repay debt in a safe, auditable workflow.

Core Features & Use Cases

  • Clarifies the ResupplyPair contract architecture and the lending lifecycle (collateral deposits, borrowing, repayment, and liquidation risk).
  • Provides practical use cases such as opening a position, increasing collateral, borrowing to target leverage, and repaying to restore health factors.
  • Illustrates interaction patterns with ERC4626 vault tokens and the reUSD stablecoin, including health checks and LTV constraints.

Quick Start

Open a new lending position by depositing collateral and borrowing reUSD.

Frequently Asked Questions about resupply-lending

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

FAQPage Schema
How does collateralized borrowing work in the Resupply lending protocol?

The lending lifecycle in Resupply consists of depositing collateral into a ResupplyPair contract, borrowing reUSD, and repaying debt to restore the health factor while respecting max LTV constraints to prevent liquidation.

How do I open a new lending position using Resupply?

Open a Resupply lending position by depositing collateral into a ResupplyPair contract and borrowing reUSD, passing the health factor validation against max LTV constraints to manage liquidation risk throughout the lifecycle.

Does Resupply borrowing integrate with ERC4626 vault tokens?

Resupply borrowing integrates with ERC4626 vault tokens for collateral management, utilizing reUSD mint and burn mechanics to execute borrowing and repayment flows while validating health factors.

What triggers liquidation risk in a Resupply lending position?

Liquidation risk in a Resupply lending position occurs when the health factor validation fails, meaning the collateral value has dropped below the max LTV threshold relative to the borrowed reUSD debt.

Can I use Resupply lending flows for governance simulations and risk assessments?

Resupply lending flows support governance simulations and risk assessments by exposing core state management for collateral, debt, health factor validation, and max LTV constraints for auditing and testing.