Open app

/// Model registry

Model v1 ships in the hook's constructor.

Every parameter set is public. A new set or an update waits 24 hours in the hook before anyone can activate it, and is scored against a static pool on the same real swaps.

Parameters

[v1]
ParameterValueMeaning
base0.08%Fee for a swap that closes no gap. Each pool can set its own base inside [floor, cap].
k60 pips / bpsAdded for every bps of gap the swap closes toward the reference.
size40 × impact² / 10,000Convex term on the swap's estimated price impact, in bps.
step0.10%Added per earlier swap in the same pool, block and direction.
tiers0: ×1 +0.00% 1: ×1.5 +0.05% 2: ×3 +0.25% 3: ×5 +0.45%Applied to the surcharge for the sender's tier from the model's table.
floor / cap0.01% / 1.00%Clamp. Hard limits in the hook: cap at most 1%, floor at least 0.01%.
band50 bpsHow far the pool reference and the keeper's posted price may disagree before the hook takes the one that charges more.

Record and refit

[live]
Scoring the models on the tape…