Orbital: a stablecoin AMM hook for Uniswap v4

Orbital is a complete implementation of Paradigm's Orbital AMM. Several stablecoins share one pool, with concentrated liquidity like Uniswap V3.

1st place, Uniswap Hook Incubator (UHI9 Hookathon)

Swaps and liquidity in one pool

Swap any of the four coins into another, or add liquidity across all four and watch each coin's share move.

Why one pool

Four coins in one pool. Pair-by-pair markets would need six separate pools for the same coins.

One curve for every coin. Liquidity is shared, not split across pairs.

Shares reserves across coins

USDC, USDT, DAI and FRAX draw on one reserve, so depth is not split across six separate pairs.

Concentrates liquidity on ticks

Positions sit on ticks, as in Uniswap V3. A swap walks through the ticks it crosses and moves the price.

Parts of the protocol

What is in the repository, one line each.

  • Spherical invariant with custom fixed-point math
  • Multi-token pools with concentrated liquidity
  • Ticks, position management and shared token custody
  • Swap engine with tick traversal and price movement
  • Full Uniswap v4 hook callbacks and pool lifecycle
  • React interface for swaps, liquidity and portfolio
  • Gas efficiency, numerical precision and hook security
  • Tests for the math, swap paths, liquidity and end-to-end flows