GladiatorHook
EthereumGladiatorHook is a Uniswap v4 hook on Ethereum. Runs code on every swap. Sets its own swap fee. Gates who can add liquidity. Runs at pool creation.
- Contract name
- GladiatorHook
How this hook works
Liquidity managerSets the swap fee itself and changes it over time (for example a high fee at launch that comes down). Adds and removes liquidity itself (it can own part or all of the pool’s liquidity).
- When a pool is created, it only allows pools that meet its rules (for example created by its own launcher).
- When someone adds liquidity, it decides who may add liquidity, or when.
- Before each swap, it sets the swap fee and blocks trading until a start time.
- After each swap, it can undo trades that break its rules and records it.
- Anyone can collect the fees it has built up, claim what they’re owed, send the collected fees on to where they go and withdraw what they put in.
Who controls it: Not upgradeable. The settler can change: start final round, close lost, declare won, migration buy, pay holders, post rewards.
Based on the hook’s published code.
What it can do
Its code executes inside each trade in pools that use it.
Pools using it let the hook choose the swap fee instead of a fixed tier.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.