AsymmetricFeesHook

It’s a Uniswap v4 hook inspired by Nezlobin’s Directional Fee, designed to make LPs more profitable by dynamically adjusting the pool fee.

ETHGlobal BangkokShipped November 15, 2024Prize winner#defi#security
Repo
AsymmetricFeesHook banner

About

The goal is to charge informed traders higher fees to prevent the pool from quoting worse prices than the efficient market price. The mechanism works by adjusting fees based on price changes: if the AMM price increases by Δ in block t, at the start of block t+1, increase buy fees and decrease sell fees proportionally by δ = cΔ (where c > 0). This ensures fair adjustments while preventing fees from going negative.

How it's made

The goal of this mechanism is to charge informed traders higher fees, thereby reducing the likelihood of the pool being exploited when it quotes a worse price than the efficient market price. The design works by dynamically adjusting fees based on observed price movements, ensuring that the pool remains competitive while discouraging arbitrageurs from exploiting stale prices.

Here’s how the mechanism works: Suppose, in block t, the AMM price increases by a certain amount, denoted as Δ. This movement suggests that informed traders might have acted on new market information not yet reflected in the pool’s pricing. To mitigate the risk of further exploitation, at the beginning of the next block, t+1, the pool adjusts its fees as follows: • For buys: The fee is increased by an amount proportional to the price change, δ = cΔ, where c > 0 is a configurable constant that determines the sensitivity of the fee adjustment to price changes. This higher fee discourages further buys by informed traders seeking to capitalize on the price discrepancy. • For sales: The fee is reduced by the same proportional amount, δ = cΔ, incentivizing trades that move the price back toward equilibrium.

The key idea is to skew the pool’s fees in response to recent price changes, aligning them with market dynamics to protect LPs from unnecessary losses caused by arbitrage. However, it’s crucial to ensure that neither the buy nor the sell fee ever becomes negative, as that would create an incentive for traders to exploit the pool further.

This mechanism effectively uses directional fee adjustments to make the pool less attractive to informed traders during periods of high price volatility, thereby preserving LP profitability while maintaining a fair and efficient market.

Prizes

  • Blockscout · Blockscout Explorer Big Pool Prize · Blockscout Explorer Big Pool Prize

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

DriftFee

A Uniswap v4 hook that adjusts fees based on whether trades push prices further from equilibrium.

StoikovHook

Uniswap v4 hook that sets fees like a market maker: higher in volatile markets, skewed by direction

OniBlock

Uniswap v4 hook where an AI prices toxic arbitrage every block, and loses power if it's wrong.

Aven

Uniswap v4 hook pricing every swap from Hyperliquid's in-block oracle, so LPs stop losing to arbs

ETHGlobal MumbaiPrize winnerJudge 7.6 Shipping#defi#gaming