image.png

<aside> 👉🏼

Protect Liquidity Providers by adjusting swap fees dynamically based on price volatility

</aside>

<aside> 🔗

Links: - Uniswap v4 Hook contract

</aside>

How did you integrate our partners, if any?

I used the Hello World AVS repository from Eigenlayer and re-adapted it to create a push service that fetch volatility data from external APIs (currently implemented as a mock), calculate a weighted average volatility and push the result regularly at regular intervals to an Eigenlayer contract called VolatilityDataServiceManager. The AdaptiveSwapHook contract then consume this volatility data to adjust swap fees.

What are the key links to share? (Ex. demo video, GitHub, deck)

Uniswap v4 Hook contract: https://github.com/CJ42/adaptive-swap-hook-uhi Eigenlayer AVS codebase: https://github.com/CJ42/adaptive-swap-avs-uhi Video Presentation: https://www.loom.com/share/4f95779cad3b4871a3e631428ca6c686?sid=1e95de65-1e4a-40bf-ad62-1bbe5024638c

Problem / Background: What inspired the idea? What problems are you solving?

I’ve always seen fees in Web3 protocols as a place where centralization remains and hidden.

In a lot of systems, fees are set by developers, DAOs, or contract owners — sometimes they’re even hardcoded. For example, in liquid staking protocols, the contract owner often has full control over how much is charged (e.g: Stakewise). In DeFi apps, you’ll often see static values that never change, even though market conditions clearly do.

That always felt strange and bugged me. So the idea behind AdaptiveSwap was to reduce this central point of friction.

Instead of someone setting the fee (once and for all, or having control over it): let the market set the fees! Based on realtime volatility data.

I though it would provide transparency to users by computing a fair fee for them, while optimising revenues for LPs. While making DeFi more trustless, autonomous and removing subtle forms of control.