Delta Zero Hook

This hook minimizes impermanent loss by using lending to hedge ETH exposure in a liquidity pool.

ETHGlobal New DelhiShipped September 26, 2025Prize winner#defi#infra
Visit Repo
Delta Zero Hook banner

About

n decentralized finance (DeFi), liquidity providers face significant risks from price volatility, impermanent loss, and inefficiencies in capital allocation when supplying assets to automated market makers (AMMs). Traditional liquidity provision exposes users to unhedged directional risk, while isolated lending or trading strategies fail to fully capture yield opportunities. Moreover, real-time price data is often delayed or inaccurate, leading to suboptimal rebalancing and increased exposure. The challenge is to design a fully automated, delta-neutral liquidity strategy that efficiently combines lending and concentrated liquidity, dynamically adapts to market movements, and leverages high-fidelity oracle data to maximize yield while minimizing exposure to price swings.

How it's made

We built this project by fusing lending protocols with concentrated liquidity pools and automating the strategy through custom smart contract logic and simulations. The system begins with PYUSD, which is split into two tranches: one is supplied as collateral to a lending protocol to borrow ETH, while the other is reserved to pair with the borrowed ETH inside a Uniswap V4 ETH/PYUSD pool. The borrowed ETH creates a short exposure that offsets the long ETH exposure in the pool, forming a delta-neutral position. This ensures that ETH price swings do not dominate outcomes, leaving Uniswap fees and lending yields as the main sources of return. We designed the position to sit within an adaptive liquidity range, which moves with price and maximizes capital efficiency.

To improve accuracy in pricing and risk management, we integrated Pyth Network as a decentralized, high-fidelity oracle for real-time market data. Pyth provides low-latency, reliable ETH and PYUSD price feeds that feed directly into our hook's rebalancing logic. This ensures that borrowing, liquidity provision, and dynamic range adjustments are based on precise market conditions, reducing the risk of mispricing and improving overall vault performance.

On the technical side, the foundation is written in Solidity for the on-chain logic and Python for simulation, testing, and strategy validation. The Python simulation engine models ETH price paths using stochastic processes (with drift and volatility), runs swaps using a constant product AMM formula, and tracks AUM, fees, and impermanent loss over time. We also implemented a ticker-based rebalancing system, which dynamically adjusts liquidity and borrowing whenever price drifts outside a chosen range. This rebalancing is triggered by hooks (inspired by Uniswap’s afterSwap()), ensuring the vault reacts in real time to market activity. One of the hacky but effective pieces was repurposing Uniswap’s math logic for constant product pools and extending it with custom fee tracking to simulate concentrated liquidity payoffs before deploying contracts. The combination of on-chain lending, Uniswap V4 hooks, Pyth price feeds, and off-chain simulation allowed us to stitch together a market-neutral, auto-hedging liquidity hook that demonstrates how DeFi primitives can be composed into something greater than the sum of their parts.

Prizes

  • Pyth Network · Most Innovative use of Pyth pull oracle (Price Feeds) · 2nd 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.

Malbec Finance

Malbec Finance offers a liquidity pool where we allow a portion of the liquidity to be lent, virtualizing the swap curve and improving fees for liquidity providers. Using hooks and our Synthetic Pool, we can make it productive even when not directly engaged in swaps.

Vanna Finance

A DeFi derivative proprietary trading protocol that connects experienced traders with lenders, allowing them to open undercollateralized loans and leverage up to 1000x on their initial capital to execute hedging strategies.

Waffle Finance

Revolutionizing DeFi with BAMM (Borrow AMM) by virtualizing liquidity pools and integrating dual-sided lending markets, optimizing asset utilization and generating additional yield for liquidity providers. Making possible yield and leverage for any asset pair.