{"hook":"0x5Eb87F69bE00Df39981622Fd60A8De4b7837e080","block":93062259,"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":42039,"selectors":["0xe8574e8a","0xe8fe08b8","0xf0378920","0xf69ec158","0xf8c543ce","0xfe99049a","0xda748b10","0xdaf58566","0xdc4c90d3","0xdc98354e","0xdf848a9f","0xe74c37f7","0xbfe10928","0xc11cb1eb","0xc51198c6","0xcf42c38f","0xd0ba2baa","0xd677eaad","0xb56cc687","0xb6363cf2","0xbd11864b","0xbdde80c6","0xbf7e214f","0xbfcb4185","0xa6acaacc","0xab9e5bfd","0xabbae8dd","0xae4a5785","0xb11dcb23","0xb206aea0","0x999d55fb","0x9d1712c5","0x9d98c622","0xa00ba585","0xa19031b5","0xa2ba1fc8","0x8fb36037","0x8fdd4e6f","0x91dd7346","0x936852d4","0x966af35a","0x96f25d42","0x7c5e62d0","0x7e445230","0x7fa7b6ac","0x8c686d13","0x8f1a3ab0","0x64cf50c6","0x6fa9f5ca","0x6fc5e8e2","0x70233ddd","0x725fec6f","0x7a9e5e4b","0x582a6557","0x598af9e7","0x5c975abb","0x5cd04cf8","0x5f4934a8","0x63cb7bdf","0x4e8d0048","0x4eb5c4fd","0x50959344","0x51789ea2","0x558a7297","0x575e24b4","0x412b82c8","0x41b69b2a","0x426a8493","0x49e3a364","0x4cee6193","0x2e32a3b0","0x32d689bc","0x33257d40","0x36a9ca1a","0x3c2f373f","0x3f740010","0x14b00253","0x15452022","0x2384b554","0x26f5ef52","0x289a2a15","0x2a66eceb","0x05e517e7","0x095bcdb6","0x10caac0f","0x11c43804","0x13132d1a","0x136439dd","0x016b937e","0x017a31b8","0x01ffc9a7"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":13,"addresses":[]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":null,"functions":[{"selector":"0xe8574e8a","name":"claimFeeBps(bytes32)"},{"selector":"0xe8fe08b8","name":"setPoolConfig((address,address,uint24,int24,address),(uint24,uint24,uint24,uint8,uint24,uint32,uint24,uint32,uint32),uint24)"},{"selector":"0xf0378920","name":"dstMode(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":"0xe74c37f7","name":"ballotGate()"},{"selector":"0xbfe10928","name":"distributor()"},{"selector":"0xc11cb1eb","name":"closeSec(bytes32)"},{"selector":"0xc51198c6","name":"setSessionHours(bytes32,uint32,uint32)"},{"selector":"0xcf42c38f","name":"openSec(bytes32)"},{"selector":"0xd0ba2baa","name":"setDistributor(address[],address)"},{"selector":"0xd677eaad","name":"effectiveClaimFee(uint256)"},{"selector":"0xb56cc687","name":"setPoolPaused((address,address,uint24,int24,address),uint256)"},{"selector":"0xb6363cf2","name":"isOperator(address,address)"},{"selector":"0xbd11864b","name":"earlyClose(bytes32,uint256,uint256,uint256)"},{"selector":"0xbdde80c6","name":"sweepDistributor(address)"},{"selector":"0xbf7e214f","name":"authority()"},{"selector":"0xbfcb4185","name":"distributorFF()"},{"selector":"0xa6acaacc","name":"MIN_POOL_FEE()"},{"selector":"0xab9e5bfd","name":"sweepClaimFee(address)"},{"selector":"0xabbae8dd","name":"MAX_DESCENT_WINDOW()"},{"selector":"0xae4a5785","name":"setBallotGate(address)"},{"selector":"0xb11dcb23","name":"maxFee(bytes32)"},{"selector":"0xb206aea0","name":"setDayOverrides(bytes32,uint256,uint64)"},{"selector":"0x999d55fb","name":"MAX_PAUSE()"},{"selector":"0x9d1712c5","name":"claimFeeSyncIndex(uint256)"},{"selector":"0x9d98c622","name":"poolAsymmetry(bytes32)"},{"selector":"0xa00ba585","name":"pausedUntilOf(bytes32)"},{"selector":"0xa19031b5","name":"MAX_SESSION_SHIFT()"},{"selector":"0xa2ba1fc8","name":"withdraw((address,address,uint24,int24,address),int24,int24,uint128,address,uint128,uint128,uint256)"},{"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":"0x96f25d42","name":"isSettling()"},{"selector":"0x7c5e62d0","name":"claimFeeRecipient()"},{"selector":"0x7e445230","name":"MAX_POKE_DISCOUNT_BPS()"},{"selector":"0x7fa7b6ac","name":"syncRanges(uint256,uint256[])"},{"selector":"0x8c686d13","name":"claimFeeChangeAt(bytes32,uint256)"},{"selector":"0x8f1a3ab0","name":"MAX_DAY_OVERRIDES()"},{"selector":"0x64cf50c6","name":"claimFeeFor(bytes32,uint64)"},{"selector":"0x6fa9f5ca","name":"stake((address,address,uint24,int24,address),int24,int24,uint128,uint256)"},{"selector":"0x6fc5e8e2","name":"floorConfig(bytes32)"},{"selector":"0x70233ddd","name":"distributorOwed(address)"},{"selector":"0x725fec6f","name":"autonomousFee(bytes32,bool)"},{"selector":"0x7a9e5e4b","name":"setAuthority(address)"},{"selector":"0x582a6557","name":"MAX_SPIKE_MULT()"},{"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":"0x50959344","name":"feeFloorAt(bytes32,(uint24,uint24,uint24,uint8,uint24,uint32,uint24,uint32,uint32),uint256)"},{"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":"0x412b82c8","name":"ffFeeSink()"},{"selector":"0x41b69b2a","name":"rangeState(uint256)"},{"selector":"0x426a8493","name":"approve(address,uint256,uint256)"},{"selector":"0x49e3a364","name":"MIN_SESSION_LENGTH()"},{"selector":"0x4cee6193","name":"setPoolAsymmetry((address,address,uint24,int24,address),uint24,bool)"},{"selector":"0x2e32a3b0","name":"rangeKey(uint256)"},{"selector":"0x32d689bc","name":"sessionAt(bytes32,uint256)"},{"selector":"0x33257d40","name":"MAX_SESSION_LENGTH()"},{"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":"0x14b00253","name":"dayOverride(bytes32,uint256,uint256,uint256)"},{"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":"0x2a66eceb","name":"MIN_EARLY_CLOSE_LENGTH()"},{"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":"0x13132d1a","name":"setEarlyClose(bytes32,uint256,uint256,uint256,uint32)"},{"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":11,"firstTime":1788557094,"lastTime":1790715757},"pools":[{"id":"0xbe1a90db81cf52603ea9059a6fde2e5fa893a8750647ff189ee7618c61b4c4f9","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0x894E1EC2D74FFE5AEF8Dc8A9e84686acCB964F2A","fee":8388608,"tickSpacing":60,"hooks":"0x5Eb87F69bE00Df39981622Fd60A8De4b7837e080"},"symbols":["USDG","PLTR"],"state":{"sqrtP":"5693056495445002022046929732892962","tick":223659,"protocolFee":0,"lpFee":0,"liquidity":"9330949988978324"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"64505427","paid":"64505427","got":"332333273303048360","expected":"332898924961687103","feePpm":0,"takePpm":1700},{"zeroForOne":false,"ok":true,"amountIn":"170194249011707934","paid":"170194249011707934","got":"32897590","expected":"32953597","feePpm":0,"takePpm":1700}],"roundTrip":{"ok":true,"lossPpm":3,"added":["-424977","-2261859196493361"],"removed":["424976","2261859196493360"]}},{"id":"0x5e4c353496e4c82a406a38ca1eaad6d2d4cdb8d405d422faff84bcb6f548d97e","key":{"currency0":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","currency1":"0xc72b96e0E48ecd4DC75E1e45396e26300BC39681","fee":8388608,"tickSpacing":60,"hooks":"0x5Eb87F69bE00Df39981622Fd60A8De4b7837e080"},"symbols":["USDG","INTC"],"state":{"sqrtP":"8291892431614173722940125487452564","tick":231180,"protocolFee":0,"lpFee":0,"liquidity":"54284477929915538"},"swaps":[{"zeroForOne":true,"ok":true,"amountIn":"4521494","paid":"4521494","got":"49029961376918209","expected":"49525209858660618","feePpm":0,"takePpm":10000},{"zeroForOne":false,"ok":true,"amountIn":"2840663202432297606","paid":"2840663202432297606","got":"256620806","expected":"259211640","feePpm":0,"takePpm":9996}],"roundTrip":{"ok":true,"lossPpm":1,"added":["-1681886","-16809254238173827"],"removed":["1681885","16809254238173826"]}}],"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 1% 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, setPoolConfig, transferFrom, pausedUntil, setSessionHours, setDistributor."},{"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":"11 pools over 45 days."}],"score":90,"verdict":"caution"}