/// 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]| Parameter | Value | Meaning |
|---|---|---|
| base | 0.08% | Fee for a swap that closes no gap. Each pool can set its own base inside [floor, cap]. |
| k | 60 pips / bps | Added for every bps of gap the swap closes toward the reference. |
| size | 40 × impact² / 10,000 | Convex term on the swap's estimated price impact, in bps. |
| step | 0.10% | Added per earlier swap in the same pool, block and direction. |
| tiers | 0: ×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 / cap | 0.01% / 1.00% | Clamp. Hard limits in the hook: cap at most 1%, floor at least 0.01%. |
| band | 50 bps | How 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…
