Project
P.A.T
Prop AMM hook on Uniswap v4 that lets a single market maker quote privately via TEE while keeping settlement onchain and composable.
Product architecture, smart contracts, and execution design · Prototype · 2025 · 23 Nov 2025
Stack
Solidity / Uniswap v4 / Pyth / Oasis / TypeScript
What shipped
- Split swaps into request and settlement phases for async execution.
- Used TEEs to keep market-making logic private without giving up onchain settlement.
- Added pluggable strategy adapters for different pricing and risk models.
What it is
P.A.T is a prop AMM hook built on Uniswap v4. Instead of exposing a fully public curve with transparent pricing logic, it lets a single professional market maker run private pricing inside a TEE while users still settle through an onchain hook flow.
Problem
Most AMM surfaces on Ethereum assume pricing is public, continuous, and mechanically visible. That works for passive liquidity, but it is a poor fit for prop-style liquidity where a single maker wants discretion over inventory, spread setting, and quote logic. Professional market makers want to adapt to flow without publishing the full strategy surface to the market every block.
The project started with a narrower design question: can Uniswap v4 hooks be used to express a prop AMM, where private quoting and public settlement coexist without giving up composability?
What I built
I built P.A.T as an async prop AMM hook on Uniswap v4. Users submit swap requests onchain, a TEE sequencer computes batch prices offchain, and the hook settles those requests later against the maker’s strategy. The contracts are structured around escrowed requests, atomic batch settlement, Pyth pull feeds, and pluggable strategy adapters so the quote engine can stay private and modular.
The result is not a public x*y=k pool with a different UI. It is a different venue design expressed through hook infrastructure: one maker, private pricing, delayed settlement, and explicit control over how risk and inventory are managed. The writing linked to this project goes deeper on the mechanism, but the core case study is really about using hooks to encode a prop AMM structure on Ethereum.
Why it matters
P.A.T matters because prop AMM design is underexplored on Ethereum. Most onchain venues optimize for public price discovery, while professional liquidity often wants private quoting with transparent final settlement. This project explores that boundary directly through Uniswap v4’s hook surface.
It is also one of the clearest examples on the site of the kind of work I want to be found for: DeFi infrastructure, execution design, and systems that combine offchain intelligence with onchain guarantees.