{"hook":"0x0Fb46f019eBf66D0767E891f8fACe687F1156088","block":93209507,"bits":8328,"flags":[{"bit":13,"key":"beforeInitialize","label":"Before initialize","risk":0,"does":"Runs once, when a pool is created.","fn":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)","on":true},{"bit":12,"key":"afterInitialize","label":"After initialize","risk":0,"does":"Runs once, right after a pool is created.","fn":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)","on":false},{"bit":11,"key":"beforeAddLiquidity","label":"Before add liquidity","risk":1,"does":"Can refuse a deposit, or only let some addresses provide liquidity.","fn":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","on":false},{"bit":10,"key":"afterAddLiquidity","label":"After add liquidity","risk":0,"does":"Runs after each deposit.","fn":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","on":false},{"bit":9,"key":"beforeRemoveLiquidity","label":"Before remove liquidity","risk":2,"does":"Can refuse a withdrawal. LPs may not get out.","fn":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)","on":false},{"bit":8,"key":"afterRemoveLiquidity","label":"After remove liquidity","risk":0,"does":"Runs after each withdrawal.","fn":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)","on":false},{"bit":7,"key":"beforeSwap","label":"Before swap","risk":1,"does":"Runs before every swap. On a dynamic-fee pool it can set the fee each time.","fn":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)","on":true},{"bit":6,"key":"afterSwap","label":"After swap","risk":0,"does":"Runs after every swap.","fn":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)","on":false},{"bit":5,"key":"beforeDonate","label":"Before donate","risk":0,"does":"Runs before a donation to LPs.","fn":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","on":false},{"bit":4,"key":"afterDonate","label":"After donate","risk":0,"does":"Runs after a donation to LPs.","fn":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)","on":false},{"bit":3,"key":"beforeSwapReturnDelta","label":"Before swap returns delta","risk":2,"does":"Can take part of what you put into a swap, or change how much is swapped.","fn":null,"on":true},{"bit":2,"key":"afterSwapReturnDelta","label":"After swap returns delta","risk":2,"does":"Can take part of what you get out of every swap.","fn":null,"on":false},{"bit":1,"key":"afterAddLiquidityReturnDelta","label":"After add returns delta","risk":2,"does":"Can charge LPs on the way in.","fn":null,"on":false},{"bit":0,"key":"afterRemoveLiquidityReturnDelta","label":"After remove returns delta","risk":2,"does":"Can take part of what LPs withdraw.","fn":null,"on":false}],"code":{"size":24466,"selectors":["0x11a5143b","0x1871b646","0x1f2d8550","0x249d39e9","0x25dc9531","0x25df9f40","0x2acbe24e","0x323d7d6e","0x359100b8","0x36f46916","0x3e629544","0x3f008fb8","0x3fc8cef3","0x402a27ed","0x43b30d99","0x46fcb1ce","0x4c4a3c25","0x55d1cb60","0x563d08f2","0x56f05688","0x575e24b4","0x57ae3a9f","0x5b3eb51a","0x5b549182","0x5eb730c9","0x6a529ac6","0x7178abbe","0x737f751f","0x7381527f","0x78a9077c","0x79f2c0c2","0x80fa02f7","0x838a98a6","0x8a4b2dd5","0x8c9283d2","0x91dd7346","0x9d79d832","0xa36f5109","0xac4e4054","0xad5c4648","0xb0135138","0xb4ad7123","0xb83ef213","0xc0d73884","0xc31c9c07","0xd4031a14","0xd47f3bc0","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xea162f1f","0xee9b8288","0xf5b91b7b","0xf6abcd6b","0xf73e5aab","0xfeb29494","0x06fdde03","0x095ea7b3","0x18160ddd","0x23b872dd","0x313ce567","0x70a08231","0x95d89b41","0xa9059cbb","0xc969943e","0xdd62ed3e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":21,"addresses":["0xCaf681a66D020601342297493863E78C959E5cb2","0x1f7d7550B1b028f7571E69A784071F0205FD2EfA","0x2286397228be256529BE1ae9ed8D7d16549e9C6A","0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","0xfF120d460D67F1DB5b71087BD404BaBb342b5987","0x8366a39CC670B4001A1121B8F6A443A643e40951","0x8876789976dEcBfCbBbe364623C63652db8C0904","0xFf6AA24815d1274a9bE0CfD17C7c7489Cd40A697","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","0x52e65B17fB6E5BA00Ed806f37Afcd2DaA50271Ca","0xF3334192D15450CdD385c8B70e03f9A6bD9E673b","0xfFfd8963EFd1fC6A506488495d951d5263988d25","0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x11a5143b","name":"UNISWAP_V4_STATE_VIEW()"},{"selector":"0x1871b646","name":"wethUsdgPool()"},{"selector":"0x1f2d8550","name":"launches(address)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x25dc9531","name":"claimableEthUsdValueE18(uint256)"},{"selector":"0x25df9f40","name":"positionCreators(uint256)"},{"selector":"0x2acbe24e","name":"INITIAL_RWI_LIQUIDITY()"},{"selector":"0x323d7d6e","name":"TARGET_MARKET_CAP_USD_E18()"},{"selector":"0x359100b8","name":"positionTokens(uint256)"},{"selector":"0x36f46916","name":"ethUsdPriceE18()"},{"selector":"0x3e629544","name":"WETH_USDG_ORACLE_FEE()"},{"selector":"0x3f008fb8","name":"CREATOR_LP_FEE_SHARE_BPS()"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x402a27ed","name":"claimEthRewards(uint256)"},{"selector":"0x43b30d99","name":"TOKEN_SUPPLY_WHOLE()"},{"selector":"0x46fcb1ce","name":"POOL_ALLOCATION_BPS()"},{"selector":"0x4c4a3c25","name":"stateView()"},{"selector":"0x55d1cb60","name":"poolKey(address)"},{"selector":"0x563d08f2","name":"MIN_WETH_USDG_HARMONIC_LIQUIDITY()"},{"selector":"0x56f05688","name":"WETH_USDG_ORACLE_POOL()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x57ae3a9f","name":"USDG()"},{"selector":"0x5b3eb51a","name":"RWI_WETH_ORACLE_POOL()"},{"selector":"0x5b549182","name":"uniswapV3Factory()"},{"selector":"0x5eb730c9","name":"MIN_RWI_WETH_HARMONIC_LIQUIDITY()"},{"selector":"0x6a529ac6","name":"UNISWAP_V4_UNIVERSAL_ROUTER()"},{"selector":"0x7178abbe","name":"claimableEthRewards(uint256)"},{"selector":"0x737f751f","name":"ALL_HOOK_FLAGS_MASK()"},{"selector":"0x7381527f","name":"POOL_TICK_SPACING()"},{"selector":"0x78a9077c","name":"UNISWAP_V4_POOL_MANAGER()"},{"selector":"0x79f2c0c2","name":"tokenFeeInventory(uint256)"},{"selector":"0x80fa02f7","name":"ROBINHOOD_CHAIN_ID()"},{"selector":"0x838a98a6","name":"ORACLE_TWAP_WINDOW()"},{"selector":"0x8a4b2dd5","name":"TOKEN_ADDRESS_SEARCH_ATTEMPTS()"},{"selector":"0x8c9283d2","name":"convertibleRwiRewards(uint256)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x9d79d832","name":"launch((string,string,uint256,uint256))"},{"selector":"0xa36f5109","name":"MAX_LOCKED_TOKEN_DUST()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xad5c4648","name":"WETH()"},{"selector":"0xb0135138","name":"MAX_RWI_WETH_SPOT_TWAP_DEVIATION()"},{"selector":"0xb4ad7123","name":"rwiWethPool()"},{"selector":"0xb83ef213","name":"convertRwiRewardsToEth(uint256,uint256,uint256)"},{"selector":"0xc0d73884","name":"rwi()"},{"selector":"0xc31c9c07","name":"swapRouter()"},{"selector":"0xd4031a14","name":"nextPositionTokenId()"},{"selector":"0xd47f3bc0","name":"LIQUIDITY_PERMANENTLY_LOCKED()"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xea162f1f","name":"launchPricing(address)"},{"selector":"0xee9b8288","name":"collectFeesForRevenue(uint256)"},{"selector":"0xf5b91b7b","name":"usdg()"},{"selector":"0xf6abcd6b","name":"RWI()"},{"selector":"0xf73e5aab","name":"UNISWAP_V3_FACTORY()"},{"selector":"0xfeb29494","name":"SWAP_ROUTER_02()"},{"selector":"0x06fdde03","name":"name()"},{"selector":"0x095ea7b3","name":"approve(address,uint256)"},{"selector":"0x18160ddd","name":"totalSupply()"},{"selector":"0x23b872dd","name":"transferFrom(address,address,uint256)"},{"selector":"0x313ce567","name":"decimals()"},{"selector":"0x70a08231","name":"balanceOf(address)"},{"selector":"0x95d89b41","name":"symbol()"},{"selector":"0xa9059cbb","name":"transfer(address,uint256)"},{"selector":"0xc969943e","name":"FIXED_SUPPLY()"},{"selector":"0xdd62ed3e","name":"allowance(address,address)"}],"history":{"pools":6,"firstTime":1785711272,"lastTime":1785860420},"pools":[{"id":"0x4ee2e8202641c9ac5adbed383ef87a04569f0d7be5a2accbc6af9fb81fce8fad","key":{"currency0":"0x0ecA5187861A8B34c92F82e42673630197A756D0","currency1":"0x2286397228be256529BE1ae9ed8D7d16549e9C6A","fee":10000,"tickSpacing":200,"hooks":"0x0Fb46f019eBf66D0767E891f8fACe687F1156088"},"symbols":["RWITEST","RWI"],"state":{"sqrtP":"26907414896433039179311581966","tick":-21600,"protocolFee":0,"lpFee":10000,"liquidity":"339613863075944945925378083"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"4018971660976228068096","paid":"4018971660976228068096","got":"458915993816586669629","expected":"458915993816586669629","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"57669715088492750011248","paid":"57669715088492750011248","got":"494747142600465153713227","expected":"494747142600465153713227","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3919256350820995266997","-341042682172409369805"],"removed":["3919256350820995266996","341042682172409369804"]}},{"id":"0x9211ad01767d03d88b08cf3a09fa3c64148ad23bf1affeaaf3e84ba10b35993d","key":{"currency0":"0x0c67ca8aa6ADC402d784aa8C26FDEB36A71131B3","currency1":"0x2286397228be256529BE1ae9ed8D7d16549e9C6A","fee":10000,"tickSpacing":200,"hooks":"0x0Fb46f019eBf66D0767E891f8fACe687F1156088"},"symbols":["LOWIS","RWI"],"state":{"sqrtP":"27726380356183467952767318296","tick":-21000,"protocolFee":0,"lpFee":10000,"liquidity":"349956120100495524091637953"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"61234642997896223692359","paid":"61234642997896223692359","got":"494755096227367453120119","expected":"494755096227367453120119","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3920863939497281336660","-361933614139381561866"],"removed":["3920863939497281336659","361933614139381561865"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before swap returns delta. The hook is allowed to take; the next two checks measure whether it does."},{"id":"02","title":"What it takes from a swap","status":"pass","detail":"A swap through it pays the pool fee and nothing else."},{"id":"03","title":"LPs can get out","status":"pass","detail":"Liquidity added and removed in the same block came back whole."},{"id":"04","title":"The fee is the fee","status":"pass","detail":"A fixed fee of 1%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"No owner() but it has claimableEthUsdValueE18, claimEthRewards, claimableEthRewards, collectFeesForRevenue, transferFrom, transfer."},{"id":"06","title":"The code cannot change","status":"pass","detail":"Not a proxy, no DELEGATECALL, no SELFDESTRUCT."},{"id":"07","title":"Only the PoolManager can call it","status":"pass","detail":"Each callback refused a call that did not come from the PoolManager."},{"id":"08","title":"Track record","status":"pass","detail":"6 pools over 78 days."}],"score":88,"verdict":"caution"}