About
DriftFee is a Uniswap v4 dynamic fee hook designed to reduce adverse selection against liquidity providers. Traditional AMMs charge the same fee to every trade, even though some trades may push the pool price further away from its recent equilibrium and potentially represent more informed or toxic order flow.
DriftFee tracks a time-weighted reference price using the pool’s tick. For each swap, it compares the current price direction with this reference. Trades that push the price further away from the recent equilibrium pay a higher LP fee, while mean-reverting trades can receive a lower fee within predefined safety bounds.
The goal is to make liquidity pricing more responsive to the direction and potential impact of order flow rather than relying only on static fees or symmetric volatility. All adjusted fees remain LP fees and flow directly to the pool’s liquidity providers through Uniswap v4’s native accounting.
The project also focuses on adversarial safety. DriftFee is designed with bounded fees and tests around round-trip trading to ensure that fee discounts cannot be exploited to create an artificial profitable cycle.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






