001 / ADAPTIVE FEE ENGINE
01 / 07
Pegasus
Uniswap gave you the unicorn.
We gave it wings.
UNISWAP V4 HOOK
X LAYER · 2026
SCROLL TO DESCEND
02 / 07 · HOOK PARAMETERS
The Hook
Min Fee
0.01%
Max Fee
1.00%
Base Fee
0.30%
Volatility Window
10 swaps
MEV Threshold
3 directional
Gas Overhead
< 50k
03 / 07 · MANIFESTO
Staticfeeswerebuiltforamarketthatnolongerexists.Pegasuslistens.
Markets breathe. Volatility rises. MEV bots strike in coordinated waves. A fixed 0.3% fee is a relic, too high in calm, too low in chaos. Pegasus is a Uniswap V4 Hook that reads three on-chain signals and tunes the fee on every single swap.
Liquidity providers earn more when it matters. Traders pay less when it should be cheap. The pool defends itself.
ADAPTIVE FEE ENGINE
04 / 07 · FEATURED SIGNAL
MEV Shield
CONSECUTIVE_DIRECTIONAL_DETECTOR
Sandwich attackers leave a signature: three or more swaps in the same direction within a single block. Pegasus counts. When the pattern hits, the fee surges by +0.5%, making extraction unprofitable before it lands.
THRESHOLD
3
SURGE
+50 bps
WINDOW
1 block
RESULT
Sandwich neutralized.
MEV SHIELD
beforeSwap()
05 / 07 · SIGNAL INDEX
adaptive
signals
0 – 50 bps
Volatility Engine
Rolling 10-swap window. Price shift over threshold scales the fee upward to capture risk.
shift > 50bp → fee × (1 + shift/50)
≥ 3 / block
MEV Shield
Counts consecutive same-direction swaps in a block. Surges +50 bps once the sandwich pattern hits.
consecutive ≥ 3 → fee + 0.5%
> 3 / block
Volume Spike
Multiple swaps in one block signal demand. Pegasus raises the fee to capture the premium.
block_swaps > 3 → fee × 1.2
External
AI Oracle
Off-chain analytics engine can override fee per pool with a signed update for regime shifts.
oracle.setFee(pool, fee, active)
06 / 07 · EXECUTION
the loop
01
Swap arrives
A trader submits to a Uniswap V4 pool. Pegasus is registered as the beforeSwap hook.
02
Signals read
Volatility window. Consecutive direction count. Swaps-in-block counter. All on-chain.
03
Fee computed
Base × volatility multiplier + MEV surge + volume spike. Clamped to [0.01%, 1.00%].
04
Override flag
Fee returned with OVERRIDE_FEE_FLAG. Applied to this swap only. No redeploy.
06 / 07 · EXECUTION
07 / 07 · CONCEPTUAL SCENARIOS — FOR LIVE STATE SEE DASHBOARD
watch it adapt
CURRENT FEE
FEE LOG
// Select a scenario below to begin
SCENARIOS
