Hook reader
LaunchHook
0x20EEad6db6b3d0a4491E9073119DD0EBFF166AcC
Its code is published on Arc Explorer as LaunchHook, so anyone can read what it does. A contract's name is chosen by whoever deployed it: it tells you what the code is called, not who runs it. Read the code
In short: this hook can take a cut of your trade, fill trades at its own price, change the fee trade by trade, block trades, lock liquidity in and refuse new liquidity.
What this hook can do
Read from its address. “Yes” means it's allowed to, not that it always does.
When you trade
- Yes
Can it take a cut of your trade?
It can keep part of what you receive, or charge you more than the pool's price. Hooks use this for their own fees and for burns.
- Yes
Can it set its own price?
It can skip the pool and price your trade itself.
- Yes
Can it change the fee trade by trade?
On pools set up for it, it can raise or lower the fee on each trade.
- Yes
Can it block your trade?
It can stop a trade from going through. You'd only lose the network fee.
If you provide liquidity
- Yes
Can it lock liquidity in?
It can refuse withdrawals, so liquidity providers could get stuck.
- No
Can it take a cut of deposits or withdrawals?
Liquidity providers pay in and get back exactly what the pool says.
- Yes
Can it refuse new liquidity?
It can turn deposits away, or accept them only from some people.
Technical details: the 14 permission flags (7 on)
- Before pool creationInformational
Can allow or refuse new pools that name it, and set them up.
- After pool creationOff
Runs once a pool exists, e.g. to record it.
- Before adding liquidityCan refuse
Can refuse or react to liquidity being added.
- After adding liquidityOff
Runs after liquidity is added.
- Before removing liquidityCan refuse
Can refuse liquidity withdrawals — LPs could be locked in.
- After removing liquidityOff
Runs after liquidity is removed.
- Before every swapCan refuse
Can refuse trades and, on dynamic-fee pools, set the fee per trade.
- After every swapCan refuse
Sees each trade's result; can refuse it after the fact.
- Before donationsOff
Can refuse donations to LPs.
- After donationsOff
Runs after a donation to LPs.
- Rewrites swap amounts (before)Moves money
Can take or add tokens before the pool prices a trade — it can replace the pool's pricing entirely.
- Rewrites swap amounts (after)Moves money
Can take a cut of what a trader receives or add to what they pay (used for burns and hook fees).
- Rewrites LP depositsOff
Can change how much an LP pays in when adding liquidity.
- Rewrites LP withdrawalsOff
Can change how much an LP receives when withdrawing.
Uniswap v4 reads these flags from the last characters of the hook's address. They say where a hook can step in, not what it does there. Read its verified source before trusting it with funds.
