UniswapV4KEMHook on Ethereum
Uniswap v4 Hook Contract 0x4440854b2d02c57a0dc5c58b7a884562d875c0c4 on Ethereum · Other · Verified contract
- Volume (24h)
- $392.63K
- Value locked (TVL)
- $1.29M
- All-time volume
- $2.16B
- Pools using this hook
- 104
- Swaps (24h)
- 120 (74 traders)
- Total swaps
- 101,704
What it does
A Uniswap v4 hook that only allows exact-input swaps backed by a signature from an authorised quote signer, and captures any output above a signed exchange rate as ERC-6909 claims that a designated account can later redeem to an egRecipient.
How it works step by step
- Rejects exact-output swaps with ExactOutputDisabled
- Verifies an EIP-712-style digest over sender, pool key, direction, max amount in, rate, nonce and expiry signed by quoteSigner
- Consumes unordered nonces to prevent quote replay
- Computes the output surplus above maxAmountIn times maxExchangeRate divided by exchangeRateDenom
- Mints the surplus to the hook as ERC-6909 claims and returns it as an afterSwap delta
- Allows allowlisted claimable accounts to unlock the pool manager and redeem the claims to egRecipient
- Swap behaviour
- Swaps require hookData containing a signed quote (max amount in, max exchange rate, denominator, nonce, expiry, signature from quoteSigner); exact-output swaps revert. Swaps where the output exceeds the signed rate have the excess taken by the hook.
- Liquidity behaviour
- No liquidity callbacks.
- Fee behaviour
- Uses the pool's static fee; beforeSwap returns a zero fee override and no BeforeSwapDelta. Instead, the hook takes an 'exchange-rate guarantee' surplus via afterSwapReturnDelta: if the swap output exceeds maxAmountIn times maxExchangeRate divided by exchangeRateDenom, the excess output is minted to the hook as ERC-6909 claims and the amount is returned as a hook delta.
- Owner & admin controls
- Owner (Ownable) can update the quote signer, the egRecipient address, and the claimable account allowlist; owner can also call rescueERC20s, rescueERC721s and rescueERC1155s to withdraw any tokens or ETH held by the hook; owner can transfer or renounce ownership. No pause mechanism and no upgradeability found.
Enabled Uniswap v4 callbacks
beforeSwap, afterSwap, afterSwapReturnDelta
beforeSwap: validates signed quote parameters (expiry, max amount in, nonce, signature by quoteSigner) and disables exact-output swaps. afterSwap: computes the exchange-rate surplus on the swap output, mints it to the hook as ERC-6909 claim tokens, and returns the amount as an afterSwapReturnDelta. afterSwapReturnDelta: enabled so the hook can take a share of the swap output.
Security & trust assessment
Risk level: medium (verified source, high confidence).
Who controls it: Not stated.
Risk to user funds: Not stated.
Contract details
- Verified source
- Yes (UniswapV4KEMHook)
- Compiler
- solc 0.8.26+commit.8a97fa7a
- Bytecode size
- 10,180 bytes
- Upgradeable proxy
- No
- Detected patterns
- ownable, return-delta
Pools using UniswapV4KEMHook
- USDC / USDT (0.0001% fee) — 24h volume $225.61K, TVL $169.77K, 60 swaps today
- WBTC / cbBTC (0.003% fee) — 24h volume $148.24K, TVL $306.20K, 26 swaps today
- USDT / KNC (0.25% fee) — 24h volume $16.29K, TVL $478.05K, 18 swaps today
- PAXG / XAUt (0.003% fee) — 24h volume $1.58K, TVL $28.62K, 3 swaps today
- ETH / PPT (5.00% fee) — 24h volume $584, TVL $10.03K, 3 swaps today
- USDe / USDT (0.001% fee) — 24h volume $289, TVL $5.47K, 3 swaps today
- ZC / USDC (1.00% fee) — 24h volume $31, TVL $49, 6 swaps today
- ETH / USDT (0.05% fee) — 24h volume $0.98, TVL $725, 1 swaps today
- sUSDe / USDT (0.005% fee) — 24h volume $0, TVL $0.32, 0 swaps today
- ETH / USDT (0.00% fee) — 24h volume $0, TVL $0, 0 swaps today
- USDe / frxUSD (0.01% fee) — 24h volume $0, TVL $21.66K, 0 swaps today
- ETH / USDC (0.01% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / wstETH (0.005% fee) — 24h volume $0, TVL $243.53K, 0 swaps today
- ETH / KNC (0.01% fee) — 24h volume $0, TVL $0.30, 0 swaps today
- USDT / KNC (0.30% fee) — 24h volume $0, TVL $0.01, 0 swaps today
- USDe / USDC (0.0001% fee) — 24h volume $0, TVL $25, 0 swaps today
- ETH / USDT (0.009% fee) — 24h volume $0, TVL $0, 0 swaps today
- WBTC / USDC (0.01% fee) — 24h volume $0, TVL $0, 0 swaps today
- ETH / wstETH (0.01% fee) — 24h volume $0, TVL <$0.01, 0 swaps today
- USDe / USDT (0.01% fee) — 24h volume $0, TVL $22, 0 swaps today