{"hook":"0x4C77A461669c0345960dD33d415747c8932F60cC","block":93364244,"bits":8396,"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":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":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":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":5631,"selectors":["0x0505c8c9","0x205cfd14","0x249d39e9","0x30ccf97c","0x3b01d64d","0x4e1405d5","0x509d4273","0x575e24b4","0x8772a23a","0x8da5cb5b","0xa01c3483","0xa3f4bac7","0xac4e4054","0xb47b2fb1","0xb5217bb4","0xbc77461e","0xbd8a690a","0xd2b2d7af","0xdc4c90d3","0xdc98354e","0xe5f4e5a6","0xe8855812","0xf26ef49d"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":5,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0xd5bc4D80797ddAEBd91282659Eb79ABaf659B47C","functions":[{"selector":"0x0505c8c9","name":"policy()"},{"selector":"0x205cfd14","name":"authorizePool(bytes32,uint160,address,address)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x30ccf97c","name":"configureLockers(address[])"},{"selector":"0x3b01d64d","name":"OVERRIDE_FEE_FLAG()"},{"selector":"0x4e1405d5","name":"allowedLockers(address)"},{"selector":"0x509d4273","name":"pendingCreatorRevenue(address)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x8772a23a","name":"configured()"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0xa01c3483","name":"DEAD_WALLET()"},{"selector":"0xa3f4bac7","name":"ALL_HOOK_MASK()"},{"selector":"0xac4e4054","name":"REQUIRED_HOOK_FLAGS()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0xbc77461e","name":"creatorNativeRevenue(bytes32)"},{"selector":"0xbd8a690a","name":"platformNativeRevenue(bytes32)"},{"selector":"0xd2b2d7af","name":"burnedTokenFees(bytes32)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xe5f4e5a6","name":"authorizedInitializations(bytes32)"},{"selector":"0xe8855812","name":"revenueRouter()"},{"selector":"0xf26ef49d","name":"DYNAMIC_FEE_FLAG()"}],"history":{"pools":3,"firstTime":1784150707,"lastTime":1785536253},"pools":[{"id":"0xb36cd960eed396829c6c181c7538189a9342e488e1146ffb7f457cac676635f9","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x861BeB20f5947E12DE07fD67DC58DA1c5E3B1436","fee":8388608,"tickSpacing":200,"hooks":"0x4C77A461669c0345960dD33d415747c8932F60cC"},"symbols":["ETH","MRGN"],"state":{"sqrtP":"1674571796297630032669948436215758","tick":199184,"protocolFee":0,"lpFee":0,"liquidity":"47276272197874011251902"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1118379093999751","paid":"1118379093999751","got":"494376353088044895259791","expected":"499367558021820655088871","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"191379099309924048532864","paid":"191379099309924048532864","got":"424040770243750","expected":"428314678826277","feePpm":0,"takePpm":9979}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-6776461125215","-3844312299663618443370"],"removed":["6776461125214","3844312299663618443369"]}},{"id":"0x0bb20e330afdd1dcc9024f51bf4da5564b7c5edfc6659ad536dbd4a404769245","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x28a2bDAf3D5fAcbf2A6fBE08499CEB26A7a60B5F","fee":8388608,"tickSpacing":200,"hooks":"0x4C77A461669c0345960dD33d415747c8932F60cC"},"symbols":["ETH","POTTER"],"state":{"sqrtP":"1674377336405360778468371041993588","tick":199182,"protocolFee":0,"lpFee":0,"liquidity":"47276272197874011251902"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"1118508981017096","paid":"1118508981017096","got":"494318943562473035576235","expected":"499309568891853094843135","feePpm":0,"takePpm":9996},{"zeroForOne":false,"ok":true,"amountIn":"220388161576246764120550","paid":"220388161576246764120550","got":"488415752636008","expected":"493338453930989","feePpm":0,"takePpm":9979}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-6802438528684","-3832708674757089357136"],"removed":["6802438528683","3832708674757089357135"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"caution","detail":"The address enables before swap returns delta, 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":"pass","detail":"It takes 1.00% 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 before every swap. It stands at 0% now and can change."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0xd5bc4D80797ddAEBd91282659Eb79ABaf659B47C. Owner-style functions: burnedTokenFees."},{"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":"3 pools over 96 days."}],"score":85,"verdict":"caution"}