{"hook":"0xe9DDE136307C0B8AD8A22CF54f46870463C1A8CC","block":93273174,"bits":10444,"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":true},{"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":39157,"selectors":["0xec3889b5","0xedff74d0","0xf07e96b3","0xfcba2b29","0xffc8cc53","0xdf1b80ae","0xdf7787a4","0xdfcee7d2","0xe1b4af69","0xe23801f5","0xd49ed0bc","0xd98b2f5c","0xda725cc6","0xdc4c90d3","0xdc98354e","0xc27ca318","0xc38bd15c","0xc4e833ce","0xced31285","0xb5545a3c","0xb6a8b0fa","0xbc3da535","0xbf333f2c","0xc1db1b62","0xaeb33de3","0xaf73cc42","0xb47b2fb1","0xb5217bb4","0x9016af09","0x902d55a5","0x91dd7346","0x988b1fa7","0x9f063efc","0x800939ab","0x847a74ad","0x8652edf9","0x8da5cb5b","0x6c2bbe7e","0x6fe7e6eb","0x741965d8","0x78892cea","0x7f3ae11d","0x575e24b4","0x5c16e15e","0x670171fd","0x678fd289","0x3cfc7ede","0x40c23cc1","0x46ca626b","0x4af43955","0x5654d75a","0x31e658a5","0x32f0e8c0","0x34df03ed","0x351fee46","0x1e4c7292","0x1ffb51aa","0x21d0ee70","0x259982e5","0x270401cb","0x14b406cb","0x150e89cb","0x17de3c7e","0x194a4e7e","0x0d7a94f6","0x0ed56ffe","0x11b288ad","0x13560cac","0x13af4035","0x0200737f","0x03d60c01","0x0b33acd6","0x313ce567","0x70a08231","0x95d89b41","0xa9059cbb","0xdd62ed3e","0x06fdde03","0x095ea7b3","0x18160ddd","0x23b872dd"],"delegatecall":false,"selfdestruct":false,"create":false,"calls":43,"addresses":["0x199959481C9958dA5c1a595B9D081b1Bd8daD959","0xfFfD8963eFD1FC6A506488495D951d5263988d26"]},"proxy":{"implementation":null,"admin":null,"beacon":null,"clone":false},"owner":"0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd","functions":[{"selector":"0xec3889b5","name":"withdrawPlatformFees(address)"},{"selector":"0xedff74d0","name":"GRAD_RAISE()"},{"selector":"0xf07e96b3","name":"lastActivity(address)"},{"selector":"0xfcba2b29","name":"lockFeeRecipient(address)"},{"selector":"0xffc8cc53","name":"SQRT_START_C0()"},{"selector":"0xdf1b80ae","name":"lockFeeRecipientTo(address,address)"},{"selector":"0xdf7787a4","name":"MAX_WALLET()"},{"selector":"0xdfcee7d2","name":"feeRecipientOf(address)"},{"selector":"0xe1b4af69","name":"afterDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xe23801f5","name":"CTO_VETO_DELAY()"},{"selector":"0xd49ed0bc","name":"SQRT_GRAD_C0()"},{"selector":"0xd98b2f5c","name":"quoteSell(address,uint256)"},{"selector":"0xda725cc6","name":"curveParamsOf(address)"},{"selector":"0xdc4c90d3","name":"poolManager()"},{"selector":"0xdc98354e","name":"beforeInitialize(address,(address,address,uint24,int24,address),uint160)"},{"selector":"0xc27ca318","name":"ctoProposals(address)"},{"selector":"0xc38bd15c","name":"setAntiSnipeDefaults(uint256,uint256)"},{"selector":"0xc4e833ce","name":"getHookPermissions()"},{"selector":"0xced31285","name":"GRADUATED_LP_FEE()"},{"selector":"0xb5545a3c","name":"claimRefund()"},{"selector":"0xb6a8b0fa","name":"beforeDonate(address,(address,address,uint24,int24,address),uint256,uint256,bytes)"},{"selector":"0xbc3da535","name":"refunds(address)"},{"selector":"0xbf333f2c","name":"FEE_BPS()"},{"selector":"0xc1db1b62","name":"antiSnipePeakBps()"},{"selector":"0xaeb33de3","name":"TICK_LOWER_Q0()"},{"selector":"0xaf73cc42","name":"ANTI_SNIPE_MAX_BPS()"},{"selector":"0xb47b2fb1","name":"afterSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),int256,bytes)"},{"selector":"0xb5217bb4","name":"pools(bytes32)"},{"selector":"0x9016af09","name":"creatorFees(address)"},{"selector":"0x902d55a5","name":"TOTAL_SUPPLY()"},{"selector":"0x91dd7346","name":"unlockCallback(bytes)"},{"selector":"0x988b1fa7","name":"poolOf(address)"},{"selector":"0x9f063efc","name":"afterAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x800939ab","name":"CTO_INACTIVITY()"},{"selector":"0x847a74ad","name":"antiSnipeWindow()"},{"selector":"0x8652edf9","name":"poolKeyOf(address)"},{"selector":"0x8da5cb5b","name":"owner()"},{"selector":"0x6c2bbe7e","name":"afterRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),int256,int256,bytes)"},{"selector":"0x6fe7e6eb","name":"afterInitialize(address,(address,address,uint24,int24,address),uint160,int24)"},{"selector":"0x741965d8","name":"executeCtoRedirect(address)"},{"selector":"0x78892cea","name":"QUOTE_TOKEN()"},{"selector":"0x7f3ae11d","name":"TICK_UPPER_Q0()"},{"selector":"0x575e24b4","name":"beforeSwap(address,(address,address,uint24,int24,address),(bool,int256,uint160),bytes)"},{"selector":"0x5c16e15e","name":"lastClaim(address)"},{"selector":"0x670171fd","name":"LP_SUPPLY()"},{"selector":"0x678fd289","name":"coinCount()"},{"selector":"0x3cfc7ede","name":"PAIR_COOLDOWN()"},{"selector":"0x40c23cc1","name":"SQRT_START_Q0()"},{"selector":"0x46ca626b","name":"TICK_SPACING()"},{"selector":"0x4af43955","name":"feeRecipientLocked(address)"},{"selector":"0x5654d75a","name":"pairLastLaunch(bytes32)"},{"selector":"0x31e658a5","name":"state(address)"},{"selector":"0x32f0e8c0","name":"FULL_TICK_UPPER()"},{"selector":"0x34df03ed","name":"L_CURVE_Q0()"},{"selector":"0x351fee46","name":"claimCreatorFees()"},{"selector":"0x1e4c7292","name":"CURVE_SUPPLY()"},{"selector":"0x1ffb51aa","name":"L_CURVE_C0()"},{"selector":"0x21d0ee70","name":"beforeRemoveLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x259982e5","name":"beforeAddLiquidity(address,(address,address,uint24,int24,address),(int24,int24,int256,bytes32),bytes)"},{"selector":"0x270401cb","name":"setFeeRecipient(address,address)"},{"selector":"0x14b406cb","name":"antiSnipeEnabled(address)"},{"selector":"0x150e89cb","name":"QUOTE_DECIMALS()"},{"selector":"0x17de3c7e","name":"collectPoolFees(address)"},{"selector":"0x194a4e7e","name":"platformFees()"},{"selector":"0x0d7a94f6","name":"quoteBuy(address,uint256)"},{"selector":"0x0ed56ffe","name":"ANTI_SNIPE_MAX_WINDOW()"},{"selector":"0x11b288ad","name":"proposeCtoRedirect(address,address)"},{"selector":"0x13560cac","name":"allCoins(uint256)"},{"selector":"0x13af4035","name":"setOwner(address)"},{"selector":"0x0200737f","name":"GRADUATION_GAS()"},{"selector":"0x03d60c01","name":"FULL_TICK_LOWER()"},{"selector":"0x0b33acd6","name":"create(string,string,string,address,uint256,uint256,bool)"},{"selector":"0x313ce567","name":"decimals()"},{"selector":"0x70a08231","name":"balanceOf(address)"},{"selector":"0x95d89b41","name":"symbol()"},{"selector":"0xa9059cbb","name":"transfer(address,uint256)"},{"selector":"0xdd62ed3e","name":"allowance(address,address)"},{"selector":"0x06fdde03","name":"name()"},{"selector":"0x095ea7b3","name":"approve(address,uint256)"},{"selector":"0x18160ddd","name":"totalSupply()"},{"selector":"0x23b872dd","name":"transferFrom(address,address,uint256)"}],"history":{"pools":9,"firstTime":1784935631,"lastTime":1784943364},"pools":[{"id":"0x1f6c3e1ee9ae8c54afe3913a7a6e3da6f38e0a90cb4ee4d4cb4582043259f238","key":{"currency0":"0x3B744213931DC8f544e8d84E5FDD777Ce99b8ff0","currency1":"0xa30FA36Db767ad9eD3f7a60fC79526fB4d56D344","fee":8388608,"tickSpacing":10,"hooks":"0xe9DDE136307C0B8AD8A22CF54f46870463C1A8CC"},"symbols":["OIL","USO"],"state":{"sqrtP":"10913838785048815191617720","tick":-177810,"protocolFee":0,"lpFee":0,"liquidity":"146928803437795829043441"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"2530473333867467","paid":"2530473333867467","got":"132004065595800939739252","expected":"133337273311460179351510","feePpm":0,"takePpm":9999}],"roundTrip":{"ok":false,"stage":"add","reason":"curve phase"}},{"id":"0x9bd2f0333a0dff47a2736b66deff5874d9d0167ff80ef45f6e1e38ee3b1a3e3a","key":{"currency0":"0x205612Fdb7542Fe9882070E65eaBC72602b2b6eF","currency1":"0xa30FA36Db767ad9eD3f7a60fC79526fB4d56D344","fee":8388608,"tickSpacing":10,"hooks":"0xe9DDE136307C0B8AD8A22CF54f46870463C1A8CC"},"symbols":["GLDSLV","USO"],"state":{"sqrtP":"10913838785048815191617719","tick":-177810,"protocolFee":0,"lpFee":0,"liquidity":"146928803437795829043441"},"swaps":[{"zeroForOne":true,"ok":false,"why":"thin","reason":"no liquidity below the price"},{"zeroForOne":false,"ok":true,"amountIn":"2530473333867467","paid":"2530473333867467","got":"132004065595800939739252","expected":"133337273311460179351510","feePpm":0,"takePpm":9999}],"roundTrip":{"ok":false,"stage":"add","reason":"curve phase"}}],"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":"n/a","detail":"Closed to outside LPs: only the hook's own liquidity is in the pool."},{"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 0x45d3Bf592E48ff04514Fe2F7dD257392B4d67ddd. Owner-style functions: withdrawPlatformFees, setAntiSnipeDefaults, claimRefund, claimCreatorFees, setFeeRecipient, collectPoolFees."},{"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 87 days."}],"score":82,"verdict":"caution"}