← Back to home

P.A.T

Proprietary Automated Market Maker launchpad built on top of Uniswap V4 using TEEs.

Problem Statement

This project builds on Uniswap v4 hooks to create a proprietary (prop) AMM launchpad on Ethereum. On Solana, prop AMMs are a major venue for swaps and are especially popular with market makers, but they haven’t really existed on Ethereum because of EVM limitations around gas pricing mechanisms. We address this by combining Trusted Execution Environments (TEEs) with an oracle-driven pricing mechanism, enabling complex, off-chain price computation with on-chain settlement guarantees. The result is a launchpad that lets teams deploy prop AMMs on Ethereum with market-maker-friendly features, while preserving transparency, security, and composability with the broader DeFi ecosystem.

Solution

This project is built on top of Uniswap v4 and its hook system, which we use as the execution layer for swaps. We override Uniswap’s default curve-based pricing with custom curve logic and introduce an asynchronous, batch-based swap model implemented via hooks. Orders are grouped into batches inside a Trusted Execution Environment (TEE) using Oasis Runtime’s offchain logic, where we safely run proprietary strategies.At deployment time, the market maker (curator) has full control over the strategy they want to use: they can either select our default oracle-driven strategy or plug in their own custom strategy contracts, as long as those contracts implement a simple adapter interface we define. For each batch, the chosen strategy updates configurable parameters (e.g. spread, skew, inventory targets) that determine execution prices.In our reference implementation, we use an oracle-based constant spread model powered by Pyth price feeds, giving high-fidelity reference prices while keeping on-chain interaction minimal. One of the hacky-but-fun parts is how we encode batch metadata and strategy parameters into hook callbacks so the TEE can coordinate rich, stateful logic offchain, while Uniswap only ever sees valid, atomic settlements onchain.

Hackathon

ETHGlobal Buenos Aires

2025

Prizes

  • 🏆

    Uniswap v4 Volatile - Pairs Hooks1st place

    Uniswap Foundation

  • 🏆

    Build with Oasis3rd place

    Oasis Protocol

  • 🏆

    Most Innovative use of Pyth pull price Feeds1st place

    Pyth Network

Contributors