{"hook":"0x594e8e6281eDf2d363a0293a50004Cf868E7a080","block":93114613,"bits":8320,"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":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":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":34326,"selectors":["0xe74c37f7","0xe8574e8a","0xf69ec158","0xf8c543ce","0xfe99049a","0xda748b10","0xdaf58566","0xdc4c90d3","0xdc98354e","0xdf848a9f","0xbfcb4185","0xbfe10928","0xd0ba2baa","0xd5a24724","0xd677eaad","0xb56cc687","0xb6363cf2","0xbdde80c6","0xbf7e214f","0xa2ba1fc8","0xa6acaacc","0xab9e5bfd","0xae4a5785","0xb11dcb23","0x96f25d42","0x999d55fb","0x9d1712c5","0x9d98c622","0xa00ba585","0x8fb36037","0x8fdd4e6f","0x91dd7346","0x936852d4","0x966af35a","0x7c5e62d0","0x7e445230","0x7fa7b6ac","0x8c686d13","0x64cf50c6","0x6fa9f5ca","0x70233ddd","0x725fec6f","0x7a9e5e4b","0x598af9e7","0x5c975abb","0x5cd04cf8","0x5f4934a8","0x63cb7bdf","0x4e8d0048","0x4eb5c4fd","0x51789ea2","0x558a7297","0x575e24b4","0x41b69b2a","0x426a8493","0x4cee6193","0x4dc4b5c9","0x36a9ca1a","0x3c2f373f","0x3f740010","0x3fc8cef3","0x412b82c8","0x15452022","0x2384b554","0x26f5ef52","0x289a2a15","0x2e32a3b0","0x05e517e7","0x095bcdb6","0x10caac0f","0x11c43804","0x136439dd","0x016b937e","0x017a31b8","0x01ffc9a7"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":16,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xe74c37f7","name":"ballotGate()"},{"selector":"0xe8574e8a","name":"claimFeeBps(bytes32)"},{"selector":"0xf69ec158","name":"MAX_CLAIM_FEE_BPS()"},{"selector":"0xf8c543ce","name":"MAX_CLAIM_FEE_WALK()"},{"selector":"0xfe99049a","name":"transferFrom(address,address,uint256,uint256)"},{"selector":"0xda748b10","name":"pausedUntil()"},{"selector":"0xdaf58566","name":"unstake((address,address,uint24,int24,address),int24,int24,uint128)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xdf848a9f","name":"rangeId(bytes32,int24,int24)"},{"selector":"0xbfcb4185","name":"distributorFF()"},{"selector":"0xbfe10928","name":"distributor()"},{"selector":"0xd0ba2baa","name":"setDistributor(address[],address)"},{"selector":"0xd5a24724","name":"flatFee(bytes32)"},{"selector":"0xd677eaad","name":"effectiveClaimFee(uint256)"},{"selector":"0xb56cc687","name":"setPoolPaused((address,address,uint24,int24,address),uint256)"},{"selector":"0xb6363cf2","name":"isOperator(address,address)"},{"selector":"0xbdde80c6","name":"sweepDistributor(address)"},{"selector":"0xbf7e214f","name":"authority()"},{"selector":"0xa2ba1fc8","name":"withdraw((address,address,uint24,int24,address),int24,int24,uint128,address,uint128,uint128,uint256)"},{"selector":"0xa6acaacc","name":"MIN_POOL_FEE()"},{"selector":"0xab9e5bfd","name":"sweepClaimFee(address)"},{"selector":"0xae4a5785","name":"setBallotGate(address)"},{"selector":"0xb11dcb23","name":"maxFee(bytes32)"},{"selector":"0x96f25d42","name":"isSettling()"},{"selector":"0x999d55fb","name":"MAX_PAUSE()"},{"selector":"0x9d1712c5","name":"claimFeeSyncIndex(uint256)"},{"selector":"0x9d98c622","name":"poolAsymmetry(bytes32)"},{"selector":"0xa00ba585","name":"pausedUntilOf(bytes32)"},{"selector":"0x8fb36037","name":"isConsumingScheduledOp()"},{"selector":"0x8fdd4e6f","name":"pausedFor(bytes32)"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x936852d4","name":"rangeGrowth(uint256)"},{"selector":"0x966af35a","name":"pokeOf(bytes32)"},{"selector":"0x7c5e62d0","name":"claimFeeRecipient()"},{"selector":"0x7e445230","name":"MAX_POKE_DISCOUNT_BPS()"},{"selector":"0x7fa7b6ac","name":"syncRanges(uint256,uint256[])"},{"selector":"0x8c686d13","name":"claimFeeChangeAt(bytes32,uint256)"},{"selector":"0x64cf50c6","name":"claimFeeFor(bytes32,uint64)"},{"selector":"0x6fa9f5ca","name":"stake((address,address,uint24,int24,address),int24,int24,uint128,uint256)"},{"selector":"0x70233ddd","name":"distributorOwed(address)"},{"selector":"0x725fec6f","name":"autonomousFee(bytes32,bool)"},{"selector":"0x7a9e5e4b","name":"setAuthority(address)"},{"selector":"0x598af9e7","name":"allowance(address,address,uint256)"},{"selector":"0x5c975abb","name":"paused()"},{"selector":"0x5cd04cf8","name":"pokeFloor(bytes32)"},{"selector":"0x5f4934a8","name":"clearPoke(bytes32)"},{"selector":"0x63cb7bdf","name":"MAX_POKE_TTL()"},{"selector":"0x4e8d0048","name":"claimFees((address,address,uint24,int24,address),int24,int24,address,uint16)"},{"selector":"0x4eb5c4fd","name":"userPosition(uint256,address)"},{"selector":"0x51789ea2","name":"setPaused(uint256)"},{"selector":"0x558a7297","name":"setOperator(address,bool)"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x41b69b2a","name":"rangeState(uint256)"},{"selector":"0x426a8493","name":"approve(address,uint256,uint256)"},{"selector":"0x4cee6193","name":"setPoolAsymmetry((address,address,uint24,int24,address),uint24,bool)"},{"selector":"0x4dc4b5c9","name":"setPoolConfig((address,address,uint24,int24,address),uint24,uint24,uint24)"},{"selector":"0x36a9ca1a","name":"deposit((address,address,uint24,int24,address),int24,int24,uint128,uint128,uint128,uint256)"},{"selector":"0x3c2f373f","name":"ABSOLUTE_MAX_FEE()"},{"selector":"0x3f740010","name":"pokeFee(bytes32,uint24,uint24,uint40)"},{"selector":"0x3fc8cef3","name":"weth()"},{"selector":"0x412b82c8","name":"ffFeeSink()"},{"selector":"0x15452022","name":"currentFee(bytes32,bool)"},{"selector":"0x2384b554","name":"claimFeeOwed(address)"},{"selector":"0x26f5ef52","name":"setFFFeeSink(address[],address)"},{"selector":"0x289a2a15","name":"withdrawAndClaim((address,address,uint24,int24,address),int24,int24,uint128,address,uint128,uint128,uint256,uint16)"},{"selector":"0x2e32a3b0","name":"rangeKey(uint256)"},{"selector":"0x05e517e7","name":"setClaimFee((address,address,uint24,int24,address),address[],uint16,address)"},{"selector":"0x095bcdb6","name":"transfer(address,uint256,uint256)"},{"selector":"0x10caac0f","name":"claimFeeAllTimeMin(bytes32)"},{"selector":"0x11c43804","name":"claimFeeHistoryLength(bytes32)"},{"selector":"0x136439dd","name":"pause(uint256)"},{"selector":"0x016b937e","name":"pausePool((address,address,uint24,int24,address),uint256)"},{"selector":"0x017a31b8","name":"setClaimFeeBps((address,address,uint24,int24,address),uint16)"},{"selector":"0x01ffc9a7","name":"supportsInterface(bytes4)"}],"history":{"pools":9,"firstTime":1788557107,"lastTime":1791992651},"pools":[{"id":"0x4f72cb3cdc8947b678a8b18a05b77862338b9e5635337e3450c2d46130c2df1c","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0x00000000D61733e7A393A10A5B48c311AbE8f1E5","fee":8388608,"tickSpacing":60,"hooks":"0x594e8e6281eDf2d363a0293a50004Cf868E7a080"},"symbols":["ETH","frxUSD"],"state":{"sqrtP":"3871931042889024721157278087149","tick":77787,"protocolFee":0,"lpFee":0,"liquidity":"2332282800096544692037"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"16370908852967894","paid":"16370908852967894","got":"38968662801038140921","expected":"39085880352894364030","feePpm":0,"takePpm":2999},{"zeroForOne":false,"ok":true,"amountIn":"46446165751088783976","paid":"46446165751088783976","got":"19380838374943232","expected":"19439132088164579","feePpm":0,"takePpm":2999}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-148574250427756","-352002390899266325"],"removed":["148574250427755","352002390899266324"]}},{"id":"0xb4f01c156256c361e938e1391421d1297db290f9a055c1ad4a33dd42e6a76b5e","key":{"currency0":"0x0000000000000000000000000000000000000000","currency1":"0xc6911796042b15d7Fa4F6CDe69e245DdCd3d9c31","fee":8388608,"tickSpacing":60,"hooks":"0x594e8e6281eDf2d363a0293a50004Cf868E7a080"},"symbols":["ETH","VIRTUAL"],"state":{"sqrtP":"4773821486312764833212337308136","tick":81975,"protocolFee":0,"lpFee":0,"liquidity":"3681751703679271050210"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"11850729560981042","paid":"11850729560981042","got":"42887374457965085886","expected":"43016398705625827229","feePpm":0,"takePpm":3000},{"zeroForOne":false,"ok":true,"amountIn":"110920314396590494123","paid":"110920314396590494123","got":"30445045409474079","expected":"30536609593508864","feePpm":0,"takePpm":2999}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-193755415882232","-672294197499420111"],"removed":["193755415882231","672294197499420110"]}}],"openCallbacks":[],"checks":[{"id":"01","title":"Permissions that touch your money","status":"pass","detail":"None of the permissions that let a hook take from swaps or from LPs are switched on."},{"id":"02","title":"What it takes from a swap","status":"pass","detail":"It takes 0.30% 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":"No owner() but it has claimFeeBps, transferFrom, pausedUntil, setDistributor, setPoolPaused, sweepDistributor."},{"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":"9 pools over 45 days."}],"score":90,"verdict":"caution"}