{"hook":"0x558e7733C5311901588D5F37d4Aa4cfC58C5a044","block":93296823,"bits":8260,"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":false},{"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":true},{"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":false},{"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":true},{"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":6819,"selectors":["0x0885f732","0x3bd30046","0x62308e85","0x871969c1","0xb47b2fb1","0xbac403cc","0xc81f8be0","0xcaa93ee8","0xd73792a9","0xdc98354e","0xe81084ec","0xe909b80e","0xef8bddfd","0xf434c914"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":5,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0x0885f732","name":"poolConfig(bytes32)"},{"selector":"0x3bd30046","name":"END_FEE()"},{"selector":"0x62308e85","name":"POOL_MANAGER()"},{"selector":"0x871969c1","name":"registerPool(bytes32,bool,int24)"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xbac403cc","name":"DECAY_SECONDS()"},{"selector":"0xc81f8be0","name":"MULTI_POOL()"},{"selector":"0xcaa93ee8","name":"currentFee(bytes32)"},{"selector":"0xd73792a9","name":"FEE_DENOMINATOR()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe81084ec","name":"feeAt(bytes32,uint256)"},{"selector":"0xe909b80e","name":"launchTime(bytes32)"},{"selector":"0xef8bddfd","name":"START_FEE()"},{"selector":"0xf434c914","name":"PERMISSIONS()"}],"history":{"pools":5,"firstTime":1791921750,"lastTime":1792070112},"pools":[{"id":"0x962666813b4f892e444b8baff9c6dc39d18e07a471a841485241ffc6619d7f4f","key":{"currency0":"0x39077Fae94cD714Eda8e324414449Be63f728171","currency1":"0xB80Bd4D599EeBBF2851d4E7F5594918B82FF1823","fee":8388608,"tickSpacing":10,"hooks":"0x558e7733C5311901588D5F37d4Aa4cfC58C5a044"},"symbols":["MPTB","wtGRND"],"state":{"sqrtP":"45489580530781461882673710","tick":-149260,"protocolFee":0,"lpFee":0,"liquidity":"202637037835242578975972"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2035836137412815308935","paid":"2035836137412815308935","got":"664416188185645","expected":"671127462813783","feePpm":0,"takePpm":10001},{"zeroForOne":false,"ok":true,"amountIn":"13874698085724163","paid":"13874698085724163","got":"41662204972468307545148","expected":"42083035325725563176918","feePpm":0,"takePpm":10001}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1059339279016981087590","-344097751579395"],"removed":["1059339279016981087589","344097751579394"]}},{"id":"0xcae57d644c98ea754d0e422835967e5b8926a4517f4c3c6cb7caec989028e037","key":{"currency0":"0x1DB12e224635A647bb321697a9CDf009FDdf4F74","currency1":"0x23A0944e82766242dA76cb0f77e0b7812e5487EA","fee":8388608,"tickSpacing":10,"hooks":"0x558e7733C5311901588D5F37d4Aa4cfC58C5a044"},"symbols":["MPTA","wtWMT"],"state":{"sqrtP":"16208783305536790508552408","tick":-169900,"protocolFee":0,"lpFee":0,"liquidity":"48134678119482155653106"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"2438215701705313335540","paid":"2438215701705313335540","got":"101028634413291","expected":"102049125669991","feePpm":0,"takePpm":10001},{"zeroForOne":false,"ok":true,"amountIn":"1129094989541863","paid":"1129094989541863","got":"26703870770578087026480","expected":"26973606838967764673213","feePpm":0,"takePpm":10001}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-705793789364608238288","-29142134876523"],"removed":["705793789364608238287","29142134876522"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables after 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":"caution","detail":"It takes 1.00% of each swap on top of the pool fee."},{"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":"caution","detail":"Its pools use a dynamic fee that the hook sets. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"pass","detail":"No owner and no admin functions found."},{"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":"caution","detail":"5 pools, first seen 6 days ago."}],"score":78,"verdict":"caution"}