Registry
Cash Cat Hook V2
High riskThe read
- Fixed code, no upgrade path
- !Can set its own price for your swap
- !Can take a fee on each swap
- !Can block LP withdrawals
Permissions · 0x2aec · 8 of 14
beforeInitialize1<<13
afterInitialize1<<12
beforeAddLiquidity1<<11
afterAddLiquidity1<<10
beforeRemoveLiquidity1<<9
afterRemoveLiquidity1<<8
beforeSwap1<<7
afterSwap1<<6
beforeDonate1<<5
afterDonate1<<4
beforeSwapReturnDelta1<<3
afterSwapReturnDelta1<<2
afterAddLiquidityReturnDelta1<<1
afterRemoveLiquidityReturnDelta1<<0
What each permission allows
- warningbeforeSwapReturnDeltaCan replace the pool’s pricing: your output may not follow the curve at all.
- warningafterSwapReturnDeltaCan take a cut of every swap, or pay a rebate, on top of the LP fee.
- cautionbeforeRemoveLiquidityRuns before LP withdrawals and can block them: lockups, vesting, exit gates.
- infobeforeAddLiquidityCan decide who adds liquidity, and where.
- infobeforeSwapRuns before every swap: can revert it, or set the fee on dynamic-fee pools.
- infoafterSwapRuns after every swap: oracles, points, limit orders, rebalancing.
- infoinitializeRuns when a pool is created with it, and can restrict which pools may.
- infodonateRuns when someone donates to in-range LPs.
9,188Pools
4dSince its last pool
13.6KBBytecode
FixedNo proxy