{"hook":"0x7fbDd9A55F11A854aD0d1c18F63aE47D58c7E088","block":93176695,"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":21412,"selectors":["0x03bb72e5","0x0a1aade9","0x11a5143b","0x1816dac3","0x185870f9","0x249d39e9","0x2b73b0da","0x323d7d6e","0x35d795ae","0x35fe5230","0x3fc8cef3","0x402a27ed","0x4c4a3c25","0x56f05688","0x575e24b4","0x57ae3a9f","0x5b3eb51a","0x6bd6a934","0x708666ad","0x7178abbe","0x737f751f","0x7381527f","0x78a9077c","0x79f2c0c2","0x80fa02f7","0x86b1bdd1","0x8b5e3091","0x91dd7346","0x99fbab88","0x9f12d4d1","0xac4e4054","0xad5c4648","0xb8f763d3","0xbf76e944","0xc0d73884","0xc31c9c07","0xc5c54733","0xd2cf107e","0xd4031a14","0xdc4b495a","0xdc4c90d3","0xdc98354e","0xdd1b9c4a","0xde569748","0xe4f72a2e","0xe6104f73","0xebf28aa4","0xee9b8288","0xf0e35091","0xf5b91b7b","0xf6abcd6b","0xf73e5aab","0xfb93b7af","0xfeb29494","0x06fdde03","0x095ea7b3","0x18160ddd","0x23b872dd","0x313ce567","0x70a08231","0x95d89b41","0xa9059cbb","0xc969943e","0xdd62ed3e"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":19,"addresses":["0xCaf681a66D020601342297493863E78C959E5cb2","0x1f7d7550B1b028f7571E69A784071F0205FD2EfA","0x2286397228be256529BE1ae9ed8D7d16549e9C6A","0x39dBED3a2bd333467115dE45665cC57F813C4571","0x10CC6BD38112cAc182db90B6a71d8Bb5939526bA","0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73","0xfFfd8963EFd1fC6A506488495d951d5263988d25","0x8366a39CC670B4001A1121B8F6A443A643e40951","0xFf6AA24815d1274a9bE0CfD17C7c7489Cd40A697","0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","0x52e65B17fB6E5BA00Ed806f37Afcd2DaA50271Ca","0x9CD7C9196A4C1836A3DF089cb210272e07e6A5e5","0xF3334192D15450CdD385c8B70e03f9A6bD9E673b","0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x03bb72e5","name":"convertibleQuoteRewards(uint256)"},{"selector":"0x0a1aade9","name":"poolKey(address,uint8)"},{"selector":"0x11a5143b","name":"UNISWAP_V4_STATE_VIEW()"},{"selector":"0x1816dac3","name":"positionByPool(bytes32)"},{"selector":"0x185870f9","name":"developerWallet()"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x2b73b0da","name":"DEVELOPMENT_WALLET()"},{"selector":"0x323d7d6e","name":"TARGET_MARKET_CAP_USD_E18()"},{"selector":"0x35d795ae","name":"pons()"},{"selector":"0x35fe5230","name":"VOLATILE_CONVERSION_FEE()"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x402a27ed","name":"claimEthRewards(uint256)"},{"selector":"0x4c4a3c25","name":"stateView()"},{"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":"0x6bd6a934","name":"launchPools(address,uint8)"},{"selector":"0x708666ad","name":"liquidityVault()"},{"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":"0x86b1bdd1","name":"protectedOracle()"},{"selector":"0x8b5e3091","name":"claimableDeveloperEthRewards()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x99fbab88","name":"positions(uint256)"},{"selector":"0x9f12d4d1","name":"launch((string,string,uint8,uint8,uint256,uint256,uint256,uint256))"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xad5c4648","name":"WETH()"},{"selector":"0xb8f763d3","name":"PONS_WETH_ORACLE_POOL()"},{"selector":"0xbf76e944","name":"DEVELOPER_FEE_BPS()"},{"selector":"0xc0d73884","name":"rwi()"},{"selector":"0xc31c9c07","name":"swapRouter()"},{"selector":"0xc5c54733","name":"claimDeveloperEthRewards()"},{"selector":"0xd2cf107e","name":"OTHER_CREATOR_FEE_BPS()"},{"selector":"0xd4031a14","name":"nextPositionTokenId()"},{"selector":"0xdc4b495a","name":"tokenPairMask(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdd1b9c4a","name":"POOL_FEE()"},{"selector":"0xde569748","name":"ALL_PAIR_MASK()"},{"selector":"0xe4f72a2e","name":"USDG_CONVERSION_FEE()"},{"selector":"0xe6104f73","name":"PONS()"},{"selector":"0xebf28aa4","name":"convertQuoteRewardsToEth(uint256,uint256,uint256)"},{"selector":"0xee9b8288","name":"collectFeesForRevenue(uint256)"},{"selector":"0xf0e35091","name":"RWI_CREATOR_FEE_BPS()"},{"selector":"0xf5b91b7b","name":"usdg()"},{"selector":"0xf6abcd6b","name":"RWI()"},{"selector":"0xf73e5aab","name":"UNISWAP_V3_FACTORY()"},{"selector":"0xfb93b7af","name":"AUTO_COMPOUND_FEE_BPS()"},{"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":1785991341,"lastTime":1786053932},"pools":[{"id":"0x871a7bc19382a8195687fc9e3c777147a2cb3b4b394dc6352b8f3cd72750535c","key":{"currency0":"0x2286397228be256529BE1ae9ed8D7d16549e9C6A","currency1":"0xD60643cdc75fFEFCd067610B3E42a771ED0af03E","fee":10000,"tickSpacing":200,"hooks":"0x7fbDd9A55F11A854aD0d1c18F63aE47D58c7E088"},"symbols":["RWI","MULTITEST"],"state":{"sqrtP":"169382484340211986278171512383","tick":15197,"protocolFee":0,"lpFee":10000,"liquidity":"11692104937177098305860576"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2734473973813897792831","paid":"2734473973813897792831","got":"12367214561426749139195","expected":"12367214561426749139195","feePpm":10000,"takePpm":0},{"zeroForOne":false,"ok":true,"amountIn":"840236042580984968286","paid":"840236042580984968286","got":"181988615124233410981","expected":"181988615124233410981","feePpm":10000,"takePpm":0}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-16233738298977009218","-97685504070190695985"],"removed":["16233738298977009217","97685504070190695984"]}}],"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 claimEthRewards, claimableEthRewards, claimableDeveloperEthRewards, claimDeveloperEthRewards, collectFeesForRevenue, transferFrom."},{"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 74 days."}],"score":88,"verdict":"caution"}