LPFY lets Uniswap LPs borrow USDC against their LP positions while continuing to earn trading fees.
LPFY is a lending protocol that allows liquidity providers to use their Uniswap V3 and Uniswap V4 liquidity positions as collateral to borrow stablecoins without selling or unwinding their LP positions.
Lenders deposit USDC into ERC-4626 lending vaults and receive vault shares representing their position in the lending pool.Borrowers deposit supported Uniswap V3 or V4 LP positions as collateral and can borrow USDC based on the current value of the collateral and the configured loan-to-value ratio.
LPFY derives the value of each liquidity position from its underlying assets and external price feeds. While the LP position remains locked as collateral, the borrower continues to retain the economic benefits of the position, including the ability to claim trading fees generated by that liquidity.
Interest accrues on outstanding loans at a fixed borrow rate and is reflected in the ERC-4626 vault’s total assets, allowing lenders to earn yield from borrower interest.
If a position becomes undercollateralized and crosses the configured liquidation threshold, it becomes eligible for liquidation. A liquidator can repay the outstanding debt and receive the LP collateral with a predefined liquidation incentive.
For the hackathon, LPFY focuses on a minimal but complete lending lifecycle: lender deposits, V3/V4 LP collateralization, collateral valuation, borrowing, interest accrual, fee claiming, repayment, collateral withdrawal, and liquidation.
The broader goal of LPFY is to make DEX liquidity more capital-efficient by allowing LPs to unlock borrowing power from their liquidity positions while continuing to participate in liquidity provision.
Solidity Smart Contracts — Core lending, borrowing, repayment, interest, collateral, and liquidation logic.
ERC-4626 Lending Vault — Lenders supply USDC and receive vault shares representing their share of the lending pool.
Uniswap V3 Adapter — Handles V3 LP position validation, underlying asset calculation, fee collection, and collateral interaction.
Uniswap V4 Adapter — Provides a separate integration layer for V4 LP positions without changing the core lending logic.
Modular Adapter Architecture — The lending market interacts with Uniswap LP positions through adapters, making it easier to support additional DEXs later.
Chainlink Price Feeds — Used to convert the underlying LP assets into USD value for LTV and liquidation calculations.
Collateral Valuation Engine — Combines LP position data with oracle prices to determine borrowing power.
Factory Contract — Deploys and manages individual lending markets with configurable LTV, liquidation threshold, penalty, and borrow rate.
Interest Accounting — Tracks fixed-rate borrower interest and reflects accrued interest in ERC-4626 vault value.
LP Fee Claiming — Borrowers can claim trading fees generated by their collateralized Uniswap positions through the protocol.
Chainlink CRE Liquidation Engine — Allows unhealthy positions to be liquidated once their debt crosses the configured collateral threshold.

