Skip to main content

The policy boundary

Liquidity providers in participating pools. KNOT prevents one member from giving a taker a quote that is better than the federation’s aggregate curve while retaining the member’s own curve as the other boundary.

Explicitly not the target

An oracle, intent classifier, or universal sandwich defense. The rule does not know the external fair price or why a trader arrived. The dataset in this repository does not justify calling raw reserve divergence toxic flow.

Attack surface

Permissions

Knot enables beforeSwapReturnDelta, which Uniswap’s own v4 security framework rates this permission as the highest-risk class. This is unavoidable for a custom curve: the hook replaces the pricing function, which is the flag’s intended legitimate use. It means the hook is in the highest-scrutiny tier and should be read accordingly.