{"hook":"0xb7b5f61FE5FDA6A63F9555097048A378E00360cc","block":93329533,"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":8974,"selectors":["0x1fd71a18","0x240b9586","0x249d39e9","0x46062e9a","0x481c6a75","0x575e24b4","0x5b632360","0x61d027b3","0x715018a6","0x81cbd3ea","0x880f0c19","0x89aeca76","0x8da5cb5b","0x90f0c7bf","0x91dd7346","0x936bbafd","0x994ec7c7","0xa5258210","0xac4e4054","0xb47b2fb1","0xb5217bb4","0xb947efcb","0xc1bf1dcf","0xc3accd48","0xcf893acc","0xdc98354e","0xdf58a76f","0xee2a74e3","0xf0f44260","0xf2fde38b"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":4,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x81596084EC21D5eABab7E6D9A6783a8Ce3764241","functions":[{"selector":"0x1fd71a18","name":"creatorOwed(address,address)"},{"selector":"0x240b9586","name":"platformOwed(address)"},{"selector":"0x249d39e9","name":"BPS()"},{"selector":"0x46062e9a","name":"register((address,address,uint24,int24,address),address,address,uint16,bool)"},{"selector":"0x481c6a75","name":"manager()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5b632360","name":"MAX_TRADE_FEE_BPS()"},{"selector":"0x61d027b3","name":"treasury()"},{"selector":"0x715018a6","name":"renounceOwnership()"},{"selector":"0x81cbd3ea","name":"feeClaimer()"},{"selector":"0x880f0c19","name":null},{"selector":"0x89aeca76","name":"registrars(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x90f0c7bf","name":"MIN_TRADE_FEE_BPS()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x936bbafd","name":null},{"selector":"0x994ec7c7","name":"referralOwed(address)"},{"selector":"0xa5258210","name":"LP_FEE_BPS()"},{"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":"0xb947efcb","name":"claimCreatorFees(address,address)"},{"selector":"0xc1bf1dcf","name":"setRegistrar(address,bool)"},{"selector":"0xc3accd48","name":"setFeeClaimer(address)"},{"selector":"0xcf893acc","name":"claimReferralFees(address,address)"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf58a76f","name":"claimPlatformFees(address,address)"},{"selector":"0xee2a74e3","name":null},{"selector":"0xf0f44260","name":"setTreasury(address)"},{"selector":"0xf2fde38b","name":"transferOwnership(address)"}],"history":{"pools":4,"firstTime":1787679316,"lastTime":1787739510},"pools":[{"id":"0xf1a35b13ebbff84124965b09f9e1fcff8101177fa9a85db1cbe31d1e1e435a37","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x27059428AF3cc32006113f00aE8cBC75536f856D","fee":2000,"tickSpacing":60,"hooks":"0xb7b5f61FE5FDA6A63F9555097048A378E00360cc"},"symbols":["ETH","NSFW"],"state":{"sqrtP":"1855730483486807350216187215934856","tick":201239,"protocolFee":0,"lpFee":2000,"liquidity":"42692088602004467106028"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"911343474694025","paid":"911343474694025","got":"492998697073227019370893","expected":"498731279121099686849267","feePpm":2000,"takePpm":11495},{"zeroForOne":false,"ok":true,"amountIn":"9946878790144975762115","paid":"9946878790144975762115","got":"17886241618548","expected":"18094326371823","feePpm":2000,"takePpm":11500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-5393626424132","-3242005656118040427789"],"removed":["5393626424131","3242005656118040427788"]}},{"id":"0x5982a8911fd5f8cbff17e54d0661ceeedd207918b30689bc7789fea68395251c","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xc7784Dd74a796324Fbe5FB0BCC8Be4c9bE091114","fee":2000,"tickSpacing":60,"hooks":"0xb7b5f61FE5FDA6A63F9555097048A378E00360cc"},"symbols":["ETH","UPERP"],"state":{"sqrtP":"2127403182854360858927144353821107","tick":203971,"protocolFee":0,"lpFee":2000,"liquidity":"31817877693873532888936"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"471578479595835","paid":"471578479595835","got":"328516782096386839576593","expected":"339197391466389528755956","feePpm":2000,"takePpm":31488},{"zeroForOne":false,"ok":true,"amountIn":"301209126796931375307754","paid":"301209126796931375307754","got":"403650107105824","expected":"416778634079322","feePpm":2000,"takePpm":31500}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-3663829296743","-2656669801300748084211"],"removed":["3663829296742","2656669801300748084210"]}}],"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":"caution","detail":"It takes 3.15% 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":"pass","detail":"A fixed fee of 0.20%, written in the pool key."},{"id":"05","title":"No one holds the switch","status":"caution","detail":"Owned by 0x81596084EC21D5eABab7E6D9A6783a8Ce3764241. Owner-style functions: claimCreatorFees, setRegistrar, setFeeClaimer, claimReferralFees, claimPlatformFees, setTreasury."},{"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":"4 pools over 55 days."}],"score":75,"verdict":"caution"}