← Back to home

Melatonine

Melatonine: uniswap v4 pools where JIT liquidity provisions don't earn fees

Problem Statement

Allows to deploy uniswap v4 pools where JIT liquidity provisions don't earn fees. This prioritize long term, passive liquidity provisions over execution. JIT liquidity provisions can be healthy to help provide low slippage even with high volume, but also can hurts passive LPs. (only had a few hours to hack on it unfortunately so this is really wip)

Solution

using uniswap v4 hooks in the afterRemoveLiquidity, we check if the specific liquidity provision was added in the same block: if yes, accrued fees are extracted and donated back to the pool. In all other case, nothing change. The simplicity of this project also ensure high security.

Hackathon

ETHGlobal Buenos Aires

2025

Contributors