Orbital Hook

A Uniswap V4 Hook implementing a custom spherical AMM curve for efficient stable asset swaps.

ETHGlobal Buenos AiresShipped November 21, 2025Prize winner#defi#payments#uniswap
Repo
Orbital Hook banner

About

Orbital leverages Uniswap V4 Hooks to introduce a new primitive for stablecoin liquidity: the Spherical AMM. Unlike standard pools that rely on hyperbolic curves x.y=k or fragmented ticks, Orbital implements a custom pricing invariant based on high-dimensional spherical geometry.

This design creates a naturally "flatter" price curve, ideal for pegged assets, reducing slippage without requiring active tick management. By mathematically defining liquidity as a "radius" rather than a tick range, we unlock higher capital efficiency and lay the groundwork for future multi-asset pools where USDC, DAI, and USDT can share a single liquidity surface. This project demonstrates how V4 Hooks can be used to completely replace the underlying AMM math while retaining the Uniswap interface.

How it's made

I built Orbital as a Uniswap V4 Hook that overrides the default AMM logic. The notable "hack" in our architecture is the "Hook-as-Vault" pattern: I bypass the standard PoolManager's tick system entirely. Instead, our Hook contract manages its own reserves and implements an embedded ERC-4626 vault to handle LP shares.

We utilize the beforeSwap hook with the BEFORE_SWAP_RETURNS_DELTA flag to hijack the swap flow. Inside the hook, we use Solady's optimized fixed-point math library to solve the spherical intersection formula (R-x)^2 + (R-y)^2 + (R-z)^2 = L^2 in real-time. This allows us to calculate the exact output based on our custom curve and settle the trade using V4's Flash Accounting, effectively replacing the V4 "engine" (math) while keeping the "chassis" (router).

Prizes

  • Uniswap Foundation · Uniswap v4 Stable-Asset Hooks · 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.

Orbital

One pool for every stablecoin: a Uniswap v4 hook pricing N stables on the Orbital sphere curve

Custom Curves

CustomHooks is a customizable hook-based solution for Uniswap v4, enabling trading on custom invariant curves while leveraging Uniswap's efficient pool and routing infrastructure