Melatonine

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

Melatonine

Created At

ETHGlobal Buenos Aires

Project Description

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)

How it's Made

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.

background image mobile

Join the mailing list

Get the latest news and updates

Melatonine | ETHGlobal