project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

Axiom LP Mgmt

Axiom-powered Uniswap pool/hook that can enable market-conditioned LP updates

Axiom LP Mgmt

Created At

ETHGlobal New York

Winner of

🪝 Uniswap Foundation — Best use of Hooks

Project Description

We implemented a Uniswap v4 hook and position manager to enable trustless LP modification. With AxiomV2's ability to process historical state data, there are guarantees that LP rebalancing only occurs according to user-defined market conditions.

Using Axiom v2's REPL, we ergonomically accessed spot price (uniswap tick) inside a complex mapping. The spot price (market condition) is provided to the position manager, which executes the necessary checks before modifying an LP.

The example Axiom-powered LP management was tested on Goerli, using a modified Uniswap v4

How it's Made

Created a Uniswap v4 hook and router contract. We developed a set of foundry scripts to seed the pool with liquidity and simulate trades.

We then created a circuit using Axiom v2 to pull historic price from the pool. We send the price data to the solidity contracts which then rebalance the user from narrow to wide LP position

background image mobile

Join the mailing list

Get the latest news and updates