axiom-crypto / axiom-ideas

0 stars 0 forks source link

Uniswap V4 complex LP strategies #6

Open zxw344 opened 1 year ago

zxw344 commented 1 year ago

What is it?

A hook that gives LP more flexibility in terms of adjusting their strategies based on market data.

How does it work?

For example, an LP may want to adjust her position based on the price performance over the past 1 hour. A hook can be implemented afterSwap to update the price and calculate its 1h change using Axiom. It then triggers a position modification if certain conditions are met.

Why use Axiom?

Sophisticated market participants rely on a wide array of market metrics to make informed decisions. These metrics not only require real-time market data but also historical ones. Axiom gives them the flexibility to use any onchain data from any arbitrary timeframe and perform complex calculations on it. For traders interested in accepting outside funding for their LP strategies, Axiom also provides a trustless solution to ensure that the funding is being efficiently allocated according to stated strategies.