Outside Fill
HookrNot on Arbitrum yetFills part of a swap from an outside venue when it pays more; the pool keeps its liquidity.
- Place
- Core block
How it behaves
Fills part of a trade from an outside venue when it pays more; the rest from the pool.
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.
No pool can place it yet.
The first venue is Ramses V3, with native ETH.
Any other venue comes in through one adapter interface, and a hook takes one venue adapter, 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.
Arbitrage 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 adapter, 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.
- 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.
- A swap the venue does not beat still pays a small gas cost for the check.
- 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.
Tradeoff
- Outside Fill 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.
Fee
- Outside Fill charges no fee on top of the pool's own.
- 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
- Extra gas
- Not measured on Arbitrum
- 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
- Not on Arbitrum yet
- Builder
- Open the Hook Block builder