Fees
Formula
gap = |pool - ref| / ref (pips)
takesGap = gap > band and the swap moves the pool toward ref
surcharge = takesGap ? (gap - band) x mult : 0
fee = min(base + surcharge, cap)
stale ref : fee = staticFeeAll parameters are per pool in OmniPegHook.configs(poolId). The pure function feeFor and the view quoteAt(poolId, sqrtPriceX96, ref, zeroForOne) return the exact fee the hook would charge, which is what the Quote buttons on the site call.
Per pool
| Pool | Base | Band | Cap | Static |
|---|---|---|---|---|
| kHYPE/HYPE | 0.01% | 0.03% | 3% | 0.05% |
| HYPE/USDC, kHYPE/USDC | 0.30% | 0.20% | 3% | 0.50% |
| OMNIP/HYPE | 1% | 1% | 5% | 1% |
The multiplier is one on every pool. These are the values in OmniPegHook.configs today; the owner can change them.
Which side takes the gap
Selling kHYPE lowers the pool price. When the pool sits above the reference, selling kHYPE closes the gap and pays the surcharge; buying kHYPE pays the base. Below the reference it is the other way round. With the multiplier at one, the surcharge is about the size of the gap, so the arbitrageur's profit falls toward zero and the value stays with LPs.
Protocol share
LPs keep most of every fee. On every pool today the protocol share is 20% of the base fee (and of the static fee) and 50% of the surcharge; LPs keep 80% of the base and 50% of the surcharge. The share is taken only on exact-input swaps: the hook takes it from the input token in beforeSwap as a hook delta, held as ERC-6909 claims on the PoolManager, and the rest is the LP fee override for that swap. On exact-output swaps LPs keep the whole fee.
The share is meant for $OMNIP voters. Turning the claims into HYPE and paying them through FeeRewards is not active yet: today they accrue in the hook, and the keeper harvests them only when they are worth ten times the gas.
Invariants
- A pool can only be initialised on OmniPegHook with the dynamic-fee flag and a configuration set beforehand.
- The keeper can retune a pool only inside the caps the owner set, and cannot change its reference source.
- The hook never holds LP liquidity.
sweepandharvestmove only the protocol share and stray balances.
