How did you integrate our partners, if any?

Reactive Network is the partner integration. It is the keeper that holds the position at target with no off-chain bot. Two reactive contracts on Reactive Lasna watch the live pool. YBReactive catches the hook's ReleverageNeeded event plus a block-interval cron heartbeat and fires a cross-chain callback that re-levers the position back to the 50% target. YBSolvencyReactive can pause the hook at a danger threshold. I also caught a live double-borrow race on devnet (the drift watcher and the cron borrowing for one event) and fixed it by making every callback re-read live state and clamp, so overlapping triggers converge instead of stacking. The whole incident is on-chain with tx hashes in the repo.

Uniswap v4 is the venue: ybAMM is the hook itself. It disables native pool liquidity and settles every swap through beforeSwapReturnDelta custom accounting, so the pool holds no reserves. It is deployed on Unichain.

The rest of the stack, not partners but worth knowing: the hook's balance sheet is one Euler credit account (WETH collateral, borrowed USDC inventory), and a Chainlink ETH/USD feed prices every quote, share mint, and LTV reading with a staleness gate.

What are the key links to share? (Ex. demo video, GitHub, deck)

Github: https://github.com/aryan877/ybamm Slides: https://drive.google.com/open?id=1XErUp2PPKyicXiw5_B0rRnPRb6hmOjmx Project Link: https://ybamm.xyz Demo Video: https://youtu.be/o27bR7ansuo

Problem / Background: What inspired the idea? What problems are you solving?

Liquidity providers lose money quietly, and it is not a bug. Every price move, an AMM sells the asset going up and buys the one going down, and arbitrageurs take the difference. For an ETH pool that bleed is around 11% a year. Concentrated liquidity and dynamic fees shrink it but never remove it.

What pulled me in was Egorov's YieldBasis result: borrow against the LP and hold leverage at exactly 2x, and value becomes a straight line in price. A straight line has no curvature to lose, so the loss term is gone, not reduced. I wanted that as a real Uniswap v4 hook, with the loan and the liquidity as the same capital instead of two pools pretending to be one.

Impact: What makes this project unique? What impact will this make?

Most delta-neutral or IL-insurance hooks reduce the loss statistically. ybAMM removes the term itself with the L=2 math, ported from Egorov's Vyper contract and fuzz-checked against it for exact equality, so the curve is provably the real thing.

The part I am proudest of is that it runs. It is live on Unichain Sepolia with a real Chainlink feed and a real cross-chain Reactive loop on Lasna. A deposit lands under target, the keeper notices, and the position re-levers to 50% with nobody touching it. I even caught a live race between the drift watcher and the cron heartbeat and fixed it so callbacks read live state and converge instead of stacking. That whole incident is on-chain with tx hashes in the repo.

Challenges: What was challenging about building this project?

The architecture moved twice before it was right. I started with the debt leg on Aave across chains through TheCompact, which worked on a fork but meant the collateral backing swaps was not the collateral backing the loan. Then a two-route version on Euler ended up being two half-systems pretending to be one product. I threw both away and collapsed everything into a single hook whose inventory is one Euler account. Deleting working code is hard, but the one-primitive version is the only honest one.

The other hard part was the cross-chain automation: getting Reactive to fire a callback from Lasna back to the hook with replay keys and auth on both legs, and learning from the live double-borrow race that two keepers acting on one condition must read state at execution, not trust the event that triggered them.