Likely launchpad hook on Tempo
Uniswap v4 Hook Contract 0x55aeb9ebfa15c28ff9d9a675e8574a5bbe186aa8 on Tempo · Access control
- Volume (24h)
- $0
- Value locked (TVL)
- $0
- All-time volume
- $0
- Pools using this hook
- 3
- Swaps (24h)
- 0 (0 traders)
- Total swaps
- 0
What it does
A stableswap-style multi-currency pool hook that adds amplified pricing, custom LP share tokens and configurable fees for traders and liquidity providers.
How it works step by step
- Implements a multi-currency stableswap invariant using an amplification coefficient (getCurrentAmp, startAmpRamp, stopAmpRamp).
- Issues and burns ERC20-style LP share tokens on add and remove liquidity.
- Takes a hook fee and a protocol fee from pool activity and tracks them in storage for withdrawal.
- Adjusts swap amounts through beforeSwapReturnDelta, letting the hook take or supply currency during swaps.
- Exposes quote functions (quoteAddLiquidity, quoteRemoveLiquidity) for off-chain estimation.
- Swap behaviour
- beforeSwap and afterSwap compute stableswap pricing using the amplification coefficient and reserves, apply the fee, and beforeSwapReturnDelta lets the hook adjust swap accounting.
- Liquidity behaviour
- beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity and afterRemoveLiquidity are implemented; addLiquidity and removeLiquidity functions mint and burn LP share tokens (ERC20 balances, totalSupply, mint/burn selectors) and quoteAddLiquidity/quoteRemoveLiquidity compute amounts. Appears to be a stableswap-style pool with multiple currencies (currencies, currenciesLength, MIN/MAX_CURRENCIES) and an amplification coefficient.
- Fee behaviour
- Hook takes a configurable hook fee percentage (hookFeePercentage) and a protocol fee percentage on pool activity; accrued hookFees and protocolFees are tracked in storage and withdrawable via withdrawHookFees and withdrawProtocolFees. Exact fee application points cannot be fully determined from the decoded selectors alone.
- Owner & admin controls
- Owner-gated functions include setHookFeePercentage, setProtocolFeePercentage, withdrawHookFees, withdrawProtocolFees and startAmpRamp/stopAmpRamp (amplification changes). Owner is exposed via owner(); decoded bytecode contains an owner() selector and an unlock-based fee withdrawal path. Whether these are restricted to a single owner key could not be fully confirmed without source.
Enabled Uniswap v4 callbacks
beforeInitialize, beforeAddLiquidity, beforeRemoveLiquidity, beforeSwap, beforeDonate, beforeSwapReturnDelta
beforeInitialize and afterInitialize: validate pool setup and record pool id and initial reserves. beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity, afterRemoveLiquidity: manage custom share accounting and LP tokens. beforeSwap, afterSwap: compute stableswap-style swap amounts and fees. beforeDonate, afterDonate: handle donations to the pool. beforeSwapReturnDelta: the hook returns a delta that replaces part of the pool's swap accounting, letting the hook take or supply currency during swaps.
Security & trust assessment
Risk level: medium, estimated (decoded bytecode, low confidence).
Who controls it: An owner key can change hook and protocol fee percentages, withdraw accrued fees, and ramp the amplification coefficient, which changes pricing for all LPs and traders. Ramp changes are bounded by MIN_AMP_RAMP_TIME and MAX_AMP_MULTIPLIER, which limits but does not remove this power.
Risk to user funds: The hook holds pool reserves and accrued hook and protocol fees and can move them during liquidity operations and swaps (including via return deltas). Privileged owner functions can alter fees, amplification and withdraw accrued fees, so user funds depend on the owner key and on the correctness of the unverified access checks.
Security findings
- [medium] Return-delta swap accounting: beforeSwapReturnDelta is enabled, so the hook can take or supply currency during swaps, changing the effective amounts users receive.
- [medium] Adjustable fee percentages: Owner can set hookFeePercentage and protocolFeePercentage via setHookFeePercentage and setProtocolFeePercentage; no ceiling is confirmed from bytecode alone.
- [medium] Owner-controlled amplification ramp: startAmpRamp allows the owner to change the amplification coefficient over time, altering pool pricing and slippage for LPs and traders.
- [info] Hook holds and moves funds: The hook holds pool reserves and accrued fee balances and performs transfers through transferFrom, take and settle, so it is custodian of pooled funds.
- [info] Access control not verified: Bytecode references an unlock callback and an owner selector; without source, the exact access restriction on withdraw and parameter functions is unverified.
Contract details
- Verified source
- No
- Bytecode size
- 21,648 bytes
- Upgradeable proxy
- No
- Detected patterns
- erc20, erc6909-claims, moves-currency, return-delta, self-unlock
Pools using Likely launchpad hook
- pathUSD / OUSD (0.01% fee) — 24h volume $0, TVL $0, 0 swaps today