Outside Fill
HookrDeploying soonFills part of each swap from an outside venue when the venue beats the pool, and the pool keeps its own liquidity and its Hook Blocks.
- Gas it adds
- No figure yet
- Slot
- Core block
- Status
- Deploying soon
How it behaves
On a swap where the trader sets how much to pay in, the pool fills part of it from an outside venue when the venue gives more than the pool does, and fills the rest from its own liquidity. On a fork of Robinhood Chain, a buy through it returned 0.10% more than the same buy through Uniswap's zero-liquidity wrapper of the same venue, before the pool's take.
What it does
On a swap where the trader sets how much to pay in, the pool fills part of it from an outside venue when the venue gives more than the pool does, and fills the rest from its own liquidity. On a fork of Robinhood Chain, a buy through it returned 0.10% more than the same buy through Uniswap's zero-liquidity wrapper of the same venue, before the pool's take.
Coming with the next core. No pool can place it yet.
The first venue is Ramses V3, with native ETH. Any other venue comes in through one module interface, and a hook takes one venue module, picked when the hook is built.
The take and Wallet Cap count the outside part (measured on a fork of Robinhood Chain); King of the Pool and Auto Burn are built to count it too and are in the next test gate. LP fees apply to the pool's part only.
Arb recapture is on by default for these pools, as for every new pool.
Pools
The Hookr pools carrying this block are not listed yet; this is not a count of zero.
What you take on
- A hook takes one venue module, fixed when it is built, with no owner and no pause. A fault in the module itself, not the venue, would stop exact-input swaps on that hook's pools until a new hook.
- Hookr admits each module by its code hash. Revoking one stops new hooks and new pools from taking it, and open pools keep it.
- The venue's price can move between a quote and the swap, and the pool's price check bounds how far.
- A pool that uses dynamic fees prices its fee on the whole swap as if the pool filled it, which overcharges the pool's part.
Tradeoff
- It works on swaps where the trader sets the amount paid in, and a swap that sets the amount to receive fills from the pool alone. A swap the venue does not beat still pays a small gas cost for the check.
Fee
- Outside Fill charges no fee on top of the pool's own. The outside part pays the pool's take at the same rates as the pool's part, and the venue's own fee is already inside its price.
- LP fees apply to the pool's part only, so the outside part pays them nothing.
Source verification is not an independent audit.
Addresses and figures
- Gas it adds
- On a fork of Robinhood Chain, on the next core's root with a 1% take, a swap the venue does not beat costs about 21,400 gas more than the same swap with no outside fill. A swap the venue fills costs 292,126 gas against 159,429 with no outside fill, which includes the swap on the venue.
- Measured buy
- a 1,000 USDG buy on Ramses V3's WETH/USDG pool at fork block 95,533,000
- Through Uniswap's wrapper
- 0.418133 WETH
- Through outside fill
- 0.418552 WETH, 0.10% more, before the pool's take
- With a 1% take and Wallet Cap
- 0.414367 WETH
- Status
- Deploying soon
- Builder
- Open the Hook Block builder