About
RefluxHook supplies all user-provided liquidity directly into the Aave pool to continuously earn lending yield. When swaps occur, the hook instantly makes this liquidity available to Uniswap v4 using Just-In-Time (JIT) provisioning. This design allows LPs to earn both Uniswap trading fees and Aave lending yield simultaneously, while also using their liquidity positions as leveraged collateral to borrow additional funds in a single transaction via flash accounting.
Built on Uniswap v4’s hook architecture, RefluxHook ensures no capital remains idle. Liquidity is always either generating yield in Aave or actively facilitating swaps. During a swap, the hook injects liquidity into the correct tick ranges, executes the trade with slippage protection, and then returns excess funds back to Aave for yield compounding.
Key capabilities include:
- Dual Yield Streams: LPs earn trading fees from Uniswap swaps and interest from Aave lending.
- JIT Liquidity Windows: Liquidity is distributed dynamically across multiple tick windows, not locked to a wide or a single peak range.
- Leveraged Liquidity: LPs can borrow against deposited collateral and reinvest through the hook to compound positions.
- Flash Accounting: Lending, borrowing, swaps, and settlements are handled atomically in one transaction.
- Verifiable Randomness: Uniswap v4’s modifyLiquidity() requires a unique salt to derive positionIds. RefluxHook integrates Pyth entropy to generate verifiable, collision-resistant random salts, ensuring distinct position IDs, preventing replay or precomputation attacks, and securing concurrent JIT operations.
- Capital Efficiency by Design: Every unit of liquidity is either actively deployed in swaps or earning yield in lending pools.
By merging Aave’s lending markets with Uniswap v4 JIT provisioning, RefluxHook introduces a new generation of liquidity strategies where LPs can maximize yield, unlock leverage, and maintain slippage-optimized liquidity provision.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






