PadPadDoorwayPools
BasePadPadDoorwayPools is a Uniswap v4 hook on Base. Brand new: its first pool went live today. Active: 132 trades in the last week, and 1 new pool this week.
- Contract name
- PadPadDoorwayPools
How this hook works
Liquidity managerA liquidity manager hook. It manages its own liquidity, trades on its own and controls who adds liquidity.
Manages its own liquidity
It adds and removes liquidity itself, so it can own part or all of the pool.
The code that does this (modify):function _modify(PoolKey memory key, bool coinIsZero, Range memory rg, bytes32 salt, int256 sign) internal returns (int256 coinDelta, int256 pairDelta, uint256 coinFee, uint256 pairFee) { if (rg.liquidity == 0) return (0, 0, 0, 0); (BalanceDelta d, BalanceDelta fees) = IPoolManagerLiquidity(address(poolManager)).modifyLiquidity( key, ModifyLiquidityParams({tickLower: rg.lower, tickUpper: rg.upper, liquidityDelta: sign * int256(uint256(rg.liquidity)), salt: salt}), "" ); (coinDelta, pairDelta) = _split(d, coinIsZero); (int256 cf, int256 qf) = _split(fees, coinIsZero); coinFee = cf > 0 ? uint256(cf) : 0; pairFee = qf > 0 ? uint256(qf) : 0; }Trades on its own
It makes trades itself, for example to convert the fees it collected.
The code that does this (moveTo):function _moveTo(PoolKey memory key, Pool storage p, Allowance storage a, Recenter memory r, Flow memory f) internal { uint160 current = _sqrtPrice(key); if (current == r.target) return; uint256 amount = r.maxSwapIn > 0 ? r.maxSwapIn : 1; bool zeroForOne = r.target < current; // The caps bound what's offered (a free move, 1 unit asked, needs neither); the hourly allowance is checked // below against what the move actually paid, so a free move is never refused for want of allowance. if (r.maxSwapIn > 0) { if (zeroForOne != p.coinIsZero) { if (amount > p.swapCap) revert OverCap(amount, p.swapCap); } else if (amount > p.coinCap) { revert OverCap(amount, p.coinCap); } } BalanceDelta d = poolManager.swap(key, SwapParams({zeroForOne: zeroForOne, amountSpecified: -int256(amount), sqrtPriceLimitX96: r.target}), ""); (int256 dc, int256 dq) = _split(d, p.coinIsZero); f.c += dc; f.q += dq; if (dq < 0) { uint256 paid = uint256(-dq); // what moving the price actually cost if (paid > _left(a)) revert OverAllowance(paid, _left(a)); a.used += paid; f.pairOut += paid; } if (dc != 0 || dq != 0) emit Moved(Currency.unwrap(p.coinIsZero ? key.currency0 : key.currency1), -dc, -dq); uint160 reached = _sqrtPrice(key); if (reached != r.target) revert PriceNotReached(reached, r.target); }Rules for adding liquidity
It decides who can add liquidity, or when.
The code that does this (beforeAddLiquidity):function beforeAddLiquidity(address sender, PoolKey calldata, ModifyLiquidityParams calldata, bytes calldata) external view returns (bytes4) { if (msg.sender != address(poolManager)) revert NotPoolManager(); if (sender != address(this)) revert OnlyPadPadLiquidity(); return this.beforeAddLiquidity.selector; }
Who controls it: The hook developer can change the trading limits, the wallets that receive its fees, which launcher it works with and the contracts it works with. The hook developer can also change: max silence, filler, default caps, allowance, caps. The hook developer can also call: open, close, reset. The filler can call: heartbeat, recenter, recenter many. The hook developer can withdraw funds held by the hook. 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 auditguardianClose close recenter recenterManyWhat it can do
It checks every deposit before it goes in.
Hook history
Across all its pools, the hook sent on what it had collected: $566.08.
- Sent on what it had collected 14 times, worth $566.08
Latest transactions
- 0x1cdcef02…6ba1e1 block 58,732,454 · 0.000102 ETH
- 0x32952b1e…ed391e block 58,726,644 · 0.00783 ETH
- 0x1a59a5fe…dec966 block 58,723,176 · 0.0395 ETH
- 0x617e11ce…353c9c block 58,723,127 · 0.00500 ETH
- 0xa8fbfbce…173f6d block 58,723,101 · 0.0393 ETH
- 0xa0841513…bf07dd block 58,723,076 · 0.00500 ETH
- 0xd6e695c4…e3e756 block 58,722,951 · 0.000144 ETH
- 0xf831ed73…be827e block 58,722,876 · 0.00139 ETH
- 0x58ecb974…a02dc0 block 58,722,801 · 0.0338 ETH
- 0x7a88e191…663dda block 58,722,502 · 0.00286 ETH
- Recentered 140 times
Latest transactions
- 0x08017068…a1ef4e block 58,738,867
- 0x654b7b13…41b055 block 58,738,626
- 0xb420f41f…65cc87 block 58,738,154
- 0x0580c71f…8af225 block 58,738,129
- 0x7c654f7c…4d8a63 block 58,737,804
- 0x057e53cb…c99da1 block 58,737,626
- 0x4c4282bc…a77cef block 58,737,606
- 0xb0747de7…ff378d block 58,737,086
- 0xe62808ab…c8c5e5 block 58,736,435
- 0xf2a649f3…934658 block 58,736,157
- Closed 4 times
Latest transactions
- 0xb0747de7…ff378d block 58,737,086
- 0xc10d3f40…c33f2c block 58,733,353
- 0xbd744f96…948966 block 58,726,201
- 0x9700a99b…d7b254 block 58,720,731
- Earned the fees 3 times
Latest transactions
- 0x04ca73f3…35122e block 58,719,733
- 0x3a884c7b…2630b4 block 58,719,570
- 0xe2c07180…8e11f6 block 58,718,484
- Opened a pool 1 time
Settings changes: set the caps (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.