PropAMMV4Hook
BasePropAMMV4Hook is a Uniswap v4 hook on Base. Brand new: its first pool went live today. Active: 80 trades in the last week, and 1 new pool this week.
- Contract name
- PropAMMV4Hook
How this hook works
Custom pricingA custom pricing hook. It sets its own prices, stops liquidity being added directly and only lets approved callers create pools.
Sets its own prices
It can fill trades itself, at its own price, instead of using Uniswap’s normal formula.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { // The PoolManager calls this hook only for a pool whose key names it, and I1 lets only one such pool exist; // the check is repeated here so that the hook's own code shows it. if (PoolId.unwrap(key.toId()) != PoolId.unwrap(poolId)) revert PoolDoesNotExist(); if (disabled) revert Disabled(); int256 amountSpecified = params.amountSpecified; if (amountSpecified >= 0) revert ExactOutputNotSupported(); // I4 (the PoolManager itself rejects 0) if (amountSpecified < -MAX_AMOUNT_IN) revert AmountTooLarge(); bool zeroForOne = params.zeroForOne; int256 signedIn = -amountSpecified; // 1 .. 2^127 - 1 uint256 amountOut = _fill(zeroForOne, uint256(signedIn)); // I10: Uniswap's protocol fee on this pool, out of the output, to Uniswap's TokenJar. The pool has been paid // and has paid by now, and the flight word is IDLE again. (uint256 fee, uint24 feePips, address jar) = _protocolFeeOn(zeroForOne, amountOut); if (fee != 0) { Currency currencyOut = zeroForOne ? currency1 : currency0; poolManager.take(currencyOut, jar, fee); emit ProtocolFeesCollected(jar, currencyOut, fee); } int256 signedOut = -int256((amountOut - fee).toInt128()); // the cast reverts above 2^127 - 1 // Signs as in Uniswap's aggregator hooks: + for the currency paid in, - for the currency paid out. if (zeroForOne) emit HookSwap(poolId, sender, signedIn, signedOut, feePips); else emit HookSwap(poolId, sender, signedOut, signedIn, feePips); // …Liquidity can’t be added directly
Nobody can add liquidity to its pools through Uniswap directly. Liquidity only comes in through the hook’s own code.
Only approved callers create pools
New pools with this hook can only be created by approved callers, for example its own factory or launcher.
The code that does this (beforeInitialize):function beforeInitialize(address, PoolKey calldata key, uint160 sqrtPriceX96) external onlyPoolManager returns (bytes4) { if (PoolId.unwrap(key.toId()) != PoolId.unwrap(poolId)) revert PoolKeyNotAllowed(); if (sqrtPriceX96 != initialSqrtPriceX96) revert InitialPriceNotAllowed(); emit AggregatorPoolRegistered(poolId); return IHooks.beforeInitialize.selector; }Simple trades only
Trades must state the amount going in, not the amount coming out.
The code that does this (beforeSwap):function beforeSwap(address sender, PoolKey calldata key, SwapParams calldata params, bytes calldata) external onlyPoolManager returns (bytes4, BeforeSwapDelta, uint24) { // The PoolManager calls this hook only for a pool whose key names it, and I1 lets only one such pool exist; // the check is repeated here so that the hook's own code shows it. if (PoolId.unwrap(key.toId()) != PoolId.unwrap(poolId)) revert PoolDoesNotExist(); if (disabled) revert Disabled(); int256 amountSpecified = params.amountSpecified; if (amountSpecified >= 0) revert ExactOutputNotSupported(); // I4 (the PoolManager itself rejects 0) if (amountSpecified < -MAX_AMOUNT_IN) revert AmountTooLarge(); bool zeroForOne = params.zeroForOne; int256 signedIn = -amountSpecified; // 1 .. 2^127 - 1 uint256 amountOut = _fill(zeroForOne, uint256(signedIn)); // I10: Uniswap's protocol fee on this pool, out of the output, to Uniswap's TokenJar. The pool has been paid // and has paid by now, and the flight word is IDLE again. (uint256 fee, uint24 feePips, address jar) = _protocolFeeOn(zeroForOne, amountOut); if (fee != 0) { Currency currencyOut = zeroForOne ? currency1 : currency0; poolManager.take(currencyOut, jar, fee); emit ProtocolFeesCollected(jar, currencyOut, fee); } int256 signedOut = -int256((amountOut - fee).toInt128()); // the cast reverts above 2^127 - 1 // Signs as in Uniswap's aggregator hooks: + for the currency paid in, - for the currency paid out. if (zeroForOne) emit HookSwap(poolId, sender, signedIn, signedOut, feePips); else emit HookSwap(poolId, sender, signedOut, signedIn, feePips); // …
Who controls it: The hook developer can change: disabled. The code cannot be changed.
Based on the hook’s published code.What do these labels mean?
Safety report
Before you build on it. Automated checks, not an auditsetDisabledWhat it can do
Its code executes inside each trade in pools that use it.
It can take or add tokens during a swap. Fees, burns and custom curves work this way, and so do scams.
It checks every deposit before it goes in.
It runs when a pool is created, often to lock in that pool’s settings.
Hook history
Across all its pools, the hook handled a trade: $47.1k.
- Handled a trade 81 times, worth $47.1k
Latest transactions
- 0x093c2d1f…68fd5c block 59,131,535
- 0x9dc4316b…a00e9a block 59,131,375
- 0x363893a9…c6cc16 block 59,129,086
- 0x4182ffe0…9fc283 block 59,128,611
- 0x7bcf8aca…2464cc block 59,128,281
- 0x3d313318…d09a72 block 59,124,452
- 0xaebc42f1…986952 block 59,124,310
- 0xbffdd490…49ee57 block 59,124,213
- 0x21f5a039…0129be block 59,124,206
- 0x56da24ff…036c73 block 59,124,097
- Registered an aggregator pool 1 time
Counted from what the hook recorded on-chain across all its pools, for every action in its published code, plus token transfers in and out of it. Dollar values count the amounts paid in ETH, stablecoins, BNB and BTC, at today’s prices.