JIT Saving Vault

Vault with Just-In-Time(JIT) liquidity using Uniswap v4 hooks and Aave yield saving

ETHGlobal New York 2025Shipped August 15, 2025Prize winner#defi#uniswap
Visit Repo
JIT Saving Vault banner

About

JIT Saving Vault is a protocol that leverages Just-In-Time liquidity hooks on Uniswap v4 for 1:1 asset pairs(stETH/ETH, rETH/ETH and weETH/ETH). Before a swap takes place, the protocol takes the available liquidity from the vault and additionally borrows assets from Aave to amplify liquidity of the uniswapV4 pool. The swap is then executed with this enhanced position, after which the liquidity is immediately removed and the Aave loan is repaid. Meanwhile, the vault deposits continue to generate passive yield on Aave. This mechanism allows users to capture swap fees and lending rewards while enabling highly efficient, temporary liquidity provision.

How it's made

We built JIT Saving Vault as a hybrid DeFi protocol combining Uniswap v4 hooks and Aave lending. The core logic is written in Solidity, where a custom hook contract interacts directly with Uniswap v4 to add and remove liquidity. The hook listens for swaps on 1:1 asset pairs (e.g., stETH/ETH, rETH/ETH and weETH/ETH) and, just before swap, it pulls liquidity from the vault and optionally borrows assets from Aave to maximize depth. Immediately after the swap, the hook removes liquidity and repays the loan.

The vault itself is implemented as an ERC-4626-compatible contract, allowing users to deposit assets and accrue Aave yield while still being available for JIT liquidity provision. For borrowing, we integrated Aave’s lending pool contracts, using flash loan–like mechanics to source temporary capital without manual management.

On the infrastructure side, we used Foundry/Forge for development and testing.

By combining Uniswap v4 hooks with Aave, we were able to create a system that not only earns sustainable yield from lending, but also opportunistically captures trading fees with capital efficiency that’s otherwise impossible.

Prizes

  • Uniswap Foundation ·  v4 Hooks on Unichain · 1st place

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Superposition

Aqua strategies backed by yield tokens: underlying asset discoverability, atomic re-deposit on fill.